summaryrefslogtreecommitdiffstats
path: root/news/nntp/files/patch-Makefile
blob: 2bd1e1215b1a66f710f6166ca3bb13f0f0e28ecd (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
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
--- Makefile.orig	1996-01-09 08:30:24.000000000 +0100
+++ Makefile	2013-09-03 20:32:47.000000000 +0200
@@ -4,7 +4,7 @@
 # The program that knows how to deal with makefiles. [Uncomment if needed.]
 # MAKE=make
 # set CFLAGS to be -Ipath/to/special/includes if needed
-CFLAGS= -O 
+CFLAGS+= -I${LOCALBASE}/include
 #Uncomment the following for Solaris (and similiar SVR4 systems)
 #NETLIBS   = -lsocket -lnsl 
 #Uncomment the following if the previous one does not work
@@ -20,11 +20,11 @@
 #Uncomment the following for Solaris (and similiar SVR4 systems)
 #KVMLIB = -lelf
 # Where nntpd is going to live
-ETCDIR = /etc
+#ETCDIR = /usr/local/sbin
 # Where nntpxmit and nntpxfer is going to live
-BINDIR = /usr/local/bin
+#BINDIR = /usr/local/libexec/cnews
 # Where manual pages live
-MANDIR = /usr/local/man
+#MANDIR = /usr/local/man
 #
 LIBS = $(DBLIBS) $(RESLIB) $(NETLIBS) $(KVMLIB)
 SUBMAKEFLAGS="LIBS=${LIBS}" "CFLAGS=${CFLAGS}" "ETCDIR=${ETCDIR}" "BINDIR=${BINDIR}" "MANDIR=${MANDIR}"
@@ -42,11 +42,11 @@
 all: make_$(TYPE)
 
 make_server: /nowhere
-	cd server; $(MAKE) $(MFLAGS) $(SUBMAKEFLAGS)
-	cd support; $(MAKE) $(MFLAGS) $(SUBMAKEFLAGS)
-	cd doc; $(MAKE) $(MFLAGS) $(SUBMAKEFLAGS)
-	cd xmit; $(MAKE) $(MFLAGS) $(SUBMAKEFLAGS)
-	cd xfer; $(MAKE) $(MFLAGS) $(SUBMAKEFLAGS)
+	$(MAKE) -C server $(MFLAGS) $(SUBMAKEFLAGS)
+	$(MAKE) -C support $(MFLAGS) $(SUBMAKEFLAGS)
+	$(MAKE) -C doc $(MFLAGS) $(SUBMAKEFLAGS)
+	$(MAKE) -C xmit $(MFLAGS) $(SUBMAKEFLAGS)
+	$(MAKE) -C xfer $(MFLAGS) $(SUBMAKEFLAGS)
 
 server: make_server
 
@@ -59,25 +59,25 @@
 install: install_$(TYPE)
 
 install_server:
-	cd server; $(MAKE) $(MFLAGS) $(SUBMAKEFLAGS) install
-	cd support; $(MAKE) $(MFLAGS) $(SUBMAKEFLAGS) install
-	cd doc; $(MAKE) $(MFLAGS) $(SUBMAKEFLAGS) install
-	cd xmit; $(MAKE) $(MFLAGS) $(SUBMAKEFLAGS) install
-	cd xfer; $(MAKE) $(MFLAGS) $(SUBMAKEFLAGS) install
+	$(MAKE) -C server $(MFLAGS) $(SUBMAKEFLAGS) install
+	$(MAKE) -C support $(MFLAGS) $(SUBMAKEFLAGS) install
+	$(MAKE) -C doc $(MFLAGS) $(SUBMAKEFLAGS) install
+	$(MAKE) -C xmit $(MFLAGS) $(SUBMAKEFLAGS) install
+	$(MAKE) -C xfer $(MFLAGS) $(SUBMAKEFLAGS) install
 
 install_msgidd:
-	cd server; $(MAKE) $(MFLAGS) $(SUBMAKEFLAGS) install_msgidd
+	$(MAKE) -C server $(MFLAGS) $(SUBMAKEFLAGS) install_msgidd
 
 clean:
-	rm  -f .[a-z]* *.CKP *.BAK *~ ; for i in $(DISTDIRS); do cd $$i; $(MAKE) $(MFLAGS) clean; cd ..; done
+	rm  -f .[a-z]* *.CKP *.BAK *~ ; for i in $(DISTDIRS); do $(MAKE) -C $$i $(MFLAGS) clean; done
 
 check:
-	for i in $(DISTDIRS); do cd $$i; $(MAKE) $(MFLAGS) check; cd ..; done
+	for i in $(DISTDIRS); do $(MAKE) -C $$i $(MFLAGS) check; done
 
 distrib: check
 	mkdir ../nntp.dist
 	cp -rp $(DIST) ../nntp.dist
-	cd ../nntp.dist; for i in $(DISTDIRS); do cd $$i; $(MAKE) $(MFLAGS) distrib; cd ..; done
+	cd ../nntp.dist; for i in $(DISTDIRS); do $(MAKE) -C $$i $(MFLAGS) distrib; done
 
 
 server: /nowhere
OpenPOWER on IntegriCloud