blob: 5f24f757e564452c7dd3d0ccbd2326fb32ef2551 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
|
$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
|