43 lines
1 KiB
Text
43 lines
1 KiB
Text
$NetBSD: patch-aa,v 1.2 2009/10/29 22:34:33 tnn Exp $
|
|
|
|
--- Makefile.orig 1994-06-22 18:48:40.000000000 +0200
|
|
+++ Makefile
|
|
@@ -1,19 +1,19 @@
|
|
#
|
|
# Set BINDIR to where you want the binaries to go.
|
|
#
|
|
-BINDIR= /usr/public/sun4/bin
|
|
+BINDIR= ${DESTDIR}${PREFIX}/bin
|
|
|
|
#
|
|
# Set MANDIR to where you want the man pages to go.
|
|
#
|
|
-MANDIR= /usr/public/share/man/man1
|
|
+MANDIR= ${DESTDIR}${PREFIX}/${PKGMANDIR}/man1
|
|
|
|
#
|
|
# Select your favorite compiler and compilation flags here.
|
|
#
|
|
#CC = cc
|
|
-CC = gcc
|
|
-CFLAGS= -I. -O2
|
|
+#CC = gcc
|
|
+CFLAGS+= -I.
|
|
#CFLAGS= +O3 -I.
|
|
#CFLAGS= -O2 -DDEBUG
|
|
|
|
@@ -36,12 +36,8 @@ ljpgtopnm: $(DECODE_OBJ)
|
|
$(CC) ${CFLAGS} -o $@ $(DECODE_OBJ)
|
|
|
|
install: pnmtoljpg ljpgtopnm
|
|
- cp pnmtoljpg ljpgtopnm $(BINDIR)
|
|
- chmod 555 $(BINDIR)/pnmtoljpg
|
|
- chmod 555 $(BINDIR)/ljpgtopnm
|
|
- cp pnmtoljpg.1 ljpgtopnm.1 $(MANDIR)
|
|
- chmod 444 $(MANDIR)/pnmtoljpg.1
|
|
- chmod 444 $(MANDIR)/ljpgtopnm.1
|
|
+ ${BSD_INSTALL_PROGRAM} pnmtoljpg ljpgtopnm $(BINDIR)
|
|
+ ${BSD_INSTALL_MAN} pnmtoljpg.1 ljpgtopnm.1 $(MANDIR)
|
|
|
|
clean:
|
|
rm -f core *.o pnmtoljpg ljpgtopnm
|