]>
Commit | Line | Data |
---|---|---|
b7080c8e A |
1 | # |
2 | # RC Makefile for ypinit scripts on Rhapsody. | |
3 | # | |
07f47057 | 4 | # $Id: Makefile,v 1.5 2003/10/31 05:04:39 lindak Exp $ |
b7080c8e A |
5 | # |
6 | ||
7 | VARYP=$(DSTROOT)/private/var/yp | |
8 | USRSBIN=$(DSTROOT)/usr/sbin | |
9 | ||
10 | PROJECT=ypinit.tproj | |
11 | ||
12 | .PHONY: all install installhdrs installsrc build clean recurse | |
13 | ||
14 | all: build | |
15 | ||
16 | ## | |
17 | # Targets | |
18 | ## | |
19 | ||
20 | build: build_init | |
21 | ||
22 | build_init: | |
23 | @echo "Building $(PROJECT)..." | |
24 | ||
25 | installsrc: | |
26 | -mkdir -p $(SRCROOT)$(SRCPATH) | |
7ba0088d | 27 | cp Makefile Makefile.yp Makefile.main ypinit.sh ypinit.8 $(SRCROOT)$(SRCPATH) |
b7080c8e A |
28 | |
29 | installhdrs: | |
30 | ||
31 | clean: | |
32 | ||
33 | install: install_makefiles install_binaries | |
34 | ||
35 | install_makefiles: | |
36 | -mkdir -p $(VARYP) | |
37 | install -c -m 644 Makefile.yp $(VARYP) | |
38 | -chown root.wheel $(VARYP)/Makefile.yp | |
39 | install -c -m 644 Makefile.main $(VARYP) | |
40 | -chown root.wheel $(VARYP)/Makefile.main | |
41 | ||
42 | install_binaries: | |
43 | -mkdir -p $(USRSBIN) | |
44 | install -c -m 755 ypinit.sh $(USRSBIN) | |
45 | -chown root.wheel $(USRSBIN)/ypinit | |
7ba0088d | 46 | -mkdir -p "$(DSTROOT)/usr/share/man/man8" |
07f47057 | 47 | install -c -m 644 ypinit.8 "$(DSTROOT)/usr/share/man/man8/ypinit.8" |
b7080c8e | 48 |