]> git.ozlabs.org Git - ppp.git/blob - linux/Makefile.top
Add --prefix and --sysconfdir options to configure, and put
[ppp.git] / linux / Makefile.top
1 # PPP top-level Makefile for Linux.
2
3 DESTDIR = @DESTDIR@
4 BINDIR = $(DESTDIR)/sbin
5 INCDIR = $(DESTDIR)/include
6 MANDIR = $(DESTDIR)/man
7 ETCDIR = @SYSCONF@/ppp
8
9 # uid 0 = root
10 INSTALL= install
11
12 all:
13         cd chat; $(MAKE) $(MFLAGS) all
14         cd pppd/plugins; $(MAKE) $(MFLAGS) all
15         cd pppd; $(MAKE) $(MFLAGS) all
16         cd pppstats; $(MAKE) $(MFLAGS) all
17         cd pppdump; $(MAKE) $(MFLAGS) all
18
19 install: $(BINDIR) $(MANDIR)/man8 install-progs install-devel
20
21 install-progs:
22         cd chat; $(MAKE) $(MFLAGS) install
23         cd pppd/plugins; $(MAKE) $(MFLAGS) install
24         cd pppd; $(MAKE) $(MFLAGS) install
25         cd pppstats; $(MAKE) $(MFLAGS) install
26         cd pppdump; $(MAKE) $(MFLAGS) install
27
28 install-etcppp: $(ETCDIR) $(ETCDIR)/options $(ETCDIR)/pap-secrets \
29         $(ETCDIR)/chap-secrets
30
31 install-devel:
32         cd pppd; $(MAKE) $(MFLAGS) install-devel
33
34 $(ETCDIR)/options:
35         $(INSTALL) -c -m 644 etc.ppp/options $@
36 $(ETCDIR)/pap-secrets:
37         $(INSTALL) -c -m 600 etc.ppp/pap-secrets $@
38 $(ETCDIR)/chap-secrets:
39         $(INSTALL) -c -m 600 etc.ppp/chap-secrets $@
40
41 $(BINDIR):
42         $(INSTALL) -d -m 755 $@
43 $(MANDIR)/man8:
44         $(INSTALL) -d -m 755 $@
45 $(ETCDIR):
46         $(INSTALL) -d -m 755 $@
47
48 clean:
49         rm -f `find . -name '*.[oas]' -print`
50         rm -f `find . -name 'core' -print`
51         rm -f `find . -name '*~' -print`
52         cd chat; $(MAKE) clean
53         cd pppd/plugins; $(MAKE) clean
54         cd pppd; $(MAKE) clean
55         cd pppstats; $(MAKE) clean
56         cd pppdump; $(MAKE) clean
57
58 dist-clean:     clean
59         rm -f Makefile `find . -name Makefile -print`
60
61 #kernel:
62 #       cd linux; ./kinstall.sh