Lines 1-6
Link Here
|
1 |
--- Makefile.orig 2017-05-30 23:54:30 UTC |
1 |
--- Makefile.orig 2018-03-04 22:14:18 UTC |
2 |
+++ Makefile |
2 |
+++ Makefile |
3 |
@@ -5,10 +5,10 @@ |
3 |
@@ -5,11 +5,6 @@ |
4 |
# |
4 |
# |
5 |
CC?= clang |
5 |
CC?= clang |
6 |
# |
6 |
# |
Lines 8-21
Link Here
|
8 |
-INSTALL_MAN1= /usr/local/man/man1 |
8 |
-INSTALL_MAN1= /usr/local/man/man1 |
9 |
-INSTALL_MAN5= /usr/local/man/man5 |
9 |
-INSTALL_MAN5= /usr/local/man/man5 |
10 |
-INSTALL_ETC= /usr/local/etc |
10 |
-INSTALL_ETC= /usr/local/etc |
11 |
+INSTALL_TO = $(DESTDIR)/$(PREFIX)/bin |
11 |
-# |
12 |
+INSTALL_MAN1= $(DESTDIR)/$(PREFIX)/man/man1 |
|
|
13 |
+INSTALL_MAN5= $(DESTDIR)/$(PREFIX)/man/man5 |
14 |
+INSTALL_ETC= $(DESTDIR)/$(PREFIX)/etc |
15 |
# |
16 |
PRODUCT = owrep |
12 |
PRODUCT = owrep |
17 |
# |
13 |
# |
18 |
@@ -38,7 +38,7 @@ CFLAGS+= -O2 $(COMFLAGS) -I /usr/local/i |
14 |
SRC = owrep.c config.c extract.c lookup.c massage.c netio.c output.c |
|
|
15 |
@@ -38,20 +33,11 @@ CFLAGS+= -O2 $(COMFLAGS) -I /usr/local/i |
19 |
all: $(PRODUCT) |
16 |
all: $(PRODUCT) |
20 |
# |
17 |
# |
21 |
$(PRODUCT): $(OBJ) |
18 |
$(PRODUCT): $(OBJ) |
Lines 24-41
Link Here
|
24 |
# |
21 |
# |
25 |
depend: |
22 |
depend: |
26 |
mkdep $(CFLAGS) $(SRC) |
23 |
mkdep $(CFLAGS) $(SRC) |
27 |
@@ -46,10 +46,10 @@ depend: |
24 |
# |
28 |
install: $(PRODUCT) |
25 |
-install: $(PRODUCT) |
29 |
gzip -f -k $(MAN1) |
26 |
- gzip -f -k $(MAN1) |
30 |
gzip -f -k $(MAN5) |
27 |
- gzip -f -k $(MAN5) |
31 |
- install -s -g wheel -o root $(PRODUCT) $(INSTALL_TO) |
28 |
- install -s -g wheel -o root $(PRODUCT) $(INSTALL_TO) |
32 |
- install -g wheel -o root $(MAN1).gz $(INSTALL_MAN1) |
29 |
- install -g wheel -o root $(MAN1).gz $(INSTALL_MAN1) |
33 |
- install -g wheel -o root $(MAN5).gz $(INSTALL_MAN5) |
30 |
- install -g wheel -o root $(MAN5).gz $(INSTALL_MAN5) |
34 |
- install -g wheel -o root $(CONF) $(INSTALL_ETC) |
31 |
- install -g wheel -o root $(CONF) $(INSTALL_ETC) |
35 |
+ install -s $(PRODUCT) $(INSTALL_TO) |
32 |
- rm -f $(MAN1).gz $(MAN5).gz |
36 |
+ install $(MAN1).gz $(INSTALL_MAN1) |
33 |
-# |
37 |
+ install $(MAN5).gz $(INSTALL_MAN5) |
|
|
38 |
+ install $(CONF) $(INSTALL_ETC) |
39 |
rm -f $(MAN1).gz $(MAN5).gz |
40 |
# |
41 |
distfile: |
34 |
distfile: |
|
|
35 |
@mkdir -p $(DISTNAME) |
36 |
@cp -a $(SRC) $(HDR) $(DISTNAME) |