blob: 3f1e2cee68811c5a003217d95b6712fad5dca2cc (
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
44
45
46
47
48
49
50
51
52
53
54
|
$NetBSD: patch-aa,v 1.1.1.1 2004/12/30 13:04:56 minskim Exp $
--- Makefile.orig 2001-08-17 14:11:42.000000000 -0500
+++ Makefile
@@ -21,16 +21,11 @@
#
# created: djw@djw.org, January 2, 1999.
#
-INSTALL_INCDIR = /usr/local/pilot/include
-INSTALL_LIBDIR = /usr/local/pilot/lib
-INSTALL_BINDIR = /usr/local/bin
-INSTALL_MANDIR = /usr/local/man/man1
-CC = gcc
-CFLAGS = -g -I. -Wall
-LD = gcc
-LDFLAGS = -g
-AR = ar
-RANLIB = ranlib
+INSTALL_INCDIR = ${PREFIX}/include
+INSTALL_LIBDIR = ${PREFIX}/lib
+INSTALL_BINDIR = ${PREFIX}/bin
+INSTALL_MANDIR = ${PREFIX}/man/man1
+LD = ${CC}
CFILES = \
create.c \
@@ -140,19 +135,14 @@ parwin32.zip: $(WINFILES)
rm -rf par
install: libprc.a prc.h par par.man
- @test `whoami` = root || (echo "Must be root to install"; false)
- mkdir -p $(INSTALL_INCDIR)
- mkdir -p $(INSTALL_LIBDIR)
- mkdir -p $(INSTALL_BINDIR)
- mkdir -p $(INSTALL_MANDIR)
- cp prc.h $(INSTALL_INCDIR)/prc.h
- chmod 644 $(INSTALL_INCDIR)/prc.h
- cp libprc.a $(INSTALL_LIBDIR)/libprc.a
- chmod 644 $(INSTALL_LIBDIR)/libprc.a
- cp par $(INSTALL_BINDIR)/par
- chmod 755 $(INSTALL_BINDIR)/par
- cp par.man $(INSTALL_MANDIR)/par.1
- chmod 644 $(INSTALL_MANDIR)/par.1
+ ${BSD_INSTALL_DATA_DIR} $(INSTALL_INCDIR)
+ ${BSD_INSTALL_LIB_DIR} $(INSTALL_LIBDIR)
+ ${BSD_INSTALL_PROGRAM_DIR} $(INSTALL_BINDIR)
+ ${BSD_INSTALL_MAN_DIR} $(INSTALL_MANDIR)
+ ${BSD_INSTALL_DATA} prc.h $(INSTALL_INCDIR)/prc.h
+ ${BSD_INSTALL_LIB} libprc.a $(INSTALL_LIBDIR)/libprc.a
+ ${BSD_INSTALL_PROGRAM} par $(INSTALL_BINDIR)/pdbar
+ ${BSD_INSTALL_MAN} par.man $(INSTALL_MANDIR)/pdbar.1
TAGS: $(PAR_CFILES) $(CFILES) $(HFILES)
etags -r '/^prc[^(]*(/' $(PAR_CFILES) $(CFILES) $(HFILES)
|