Blame SOURCES/psutils-p17-Makefile.patch

67b279
--- psutils/Makefile.unix.orig	Wed Mar 12 00:52:59 1997
67b279
+++ psutils/Makefile.unix	Wed Jun  4 10:54:59 1997
67b279
@@ -25,10 +25,10 @@
67b279
 
67b279
 OS = UNIX
67b279
 
67b279
-BINDIR = /usr/local/bin
67b279
+BINDIR = $(DESTDIR)/usr/bin
67b279
 SCRIPTDIR = $(BINDIR)
67b279
-INCLUDEDIR = /usr/local/share/psutils
67b279
-PERL = /usr/local/bin/perl
67b279
+INCLUDEDIR = $(DESTDIR)/usr/lib/psutils
67b279
+PERL = /usr/bin/perl
67b279
 
67b279
 BINMODE = 0755
67b279
 MANMODE = 0644
67b279
@@ -36,10 +36,10 @@
67b279
 INSTALL = install -c -m $(BINMODE)
67b279
 INSTALLMAN = install -c -m $(MANMODE)
67b279
 MANEXT = 1
67b279
-MANDIR = /usr/local/share/man/man$(MANEXT)
67b279
+MANDIR = $(DESTDIR)/usr/man/man$(MANEXT)
67b279
 
67b279
 CC = gcc
67b279
-CFLAGS = -DPAPER=\"$(PAPER)\" -DUNIX -O -Wall
67b279
+CFLAGS = -DPAPER=\"$(PAPER)\" -DUNIX $(RPM_OPT_FLAGS) -Wall
67b279
 
67b279
 BIN = psbook psselect pstops epsffit psnup \
67b279
 	psresize
67b279
@@ -219,28 +219,28 @@
67b279
 install: install.bin install.script install.man
67b279
 
67b279
 install.bin: $(BIN)
67b279
-	-mkdir $(BINDIR)
67b279
+	-mkdir -p $(BINDIR)
67b279
 	@for i in $(BIN); do \
67b279
 		echo Installing $$i; \
67b279
-		$(INSTALL) $$i $(BINDIR); \
67b279
+		$(INSTALL) $$i -s $(BINDIR); \
67b279
 	done
67b279
 
67b279
 install.script: $(PERLSCRIPTS) $(SHELLSCRIPTS)
67b279
-	-mkdir $(SCRIPTDIR)
67b279
+	-mkdir -p $(SCRIPTDIR)
67b279
 	@for i in $(PERLSCRIPTS) $(SHELLSCRIPTS); do \
67b279
 		echo Installing $$i; \
67b279
 		$(INSTALL) $$i $(SCRIPTDIR); \
67b279
 	done
67b279
 
67b279
 install.include: $(INCLUDES)
67b279
-	-mkdir $(INCLUDEDIR)
67b279
+	-mkdir -p $(INCLUDEDIR)
67b279
 	@for i in $(INCLUDES); do \
67b279
 		echo Installing $$i; \
67b279
 		$(INSTALLMAN) $$i $(INCLUDEDIR); \
67b279
 	done
67b279
 
67b279
 install.man: $(MANPAGES)
67b279
-	-mkdir $(MANDIR)
67b279
+	-mkdir -p $(MANDIR)
67b279
 	@for i in $(MANPAGES); do \
67b279
 		echo Installing manual page for $$i; \
67b279
 		$(INSTALLMAN) $$i $(MANDIR)/$$i; \