$NetBSD: patch-aa,v 1.1.1.1 2003/12/21 21:30:14 wiz Exp $ --- Makefile.orig Wed Jun 22 18:48:40 1994 +++ Makefile @@ -1,19 +1,19 @@ # # Set BINDIR to where you want the binaries to go. # -BINDIR= /usr/public/sun4/bin +BINDIR= ${PREFIX}/bin # # Set MANDIR to where you want the man pages to go. # -MANDIR= /usr/public/share/man/man1 +MANDIR= ${PREFIX}/man/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