aboutsummaryrefslogtreecommitdiffstats
path: root/samples/Makefile
blob: 3dd50154e82e04196e43f55b4c81db2ff1c451c4 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
# $Id$

-include ../Makefile.conf
include ../Makefile.rules

all: rc.autofs

clean:
	rm -f rc.autofs

install: all
	-mv -f $(INSTALLROOT)/etc/auto.master $(INSTALLROOT)/etc/auto.master.old
	install -c auto.master -m 644 $(INSTALLROOT)/etc
	-mv -f $(INSTALLROOT)/etc/auto.misc $(INSTALLROOT)/etc/auto.misc.old
	install -c auto.misc   -m 644 $(INSTALLROOT)/etc
	install -c rc.autofs   -m 755 $(INSTALLROOT)$(initdir)/autofs

rc.autofs: rc.autofs.in
	sed -e "s|@@sbindir@@|$(sbindir)|g" \
	    -e "s|@@initdir@@|$(initdir)|g" < rc.autofs.in > rc.autofs