2007-11-20 17:29:44 +05:30
|
|
|
# Handy runlevel stuff
|
|
|
|
|
|
|
|
LEVELDIR = $(DESTDIR)/etc/runlevels
|
|
|
|
BOOTDIR = $(LEVELDIR)/boot
|
|
|
|
DEFAULTDIR = $(LEVELDIR)/default
|
|
|
|
|
2007-12-27 22:23:14 +05:30
|
|
|
INSTALL ?= install
|
|
|
|
|
2007-11-20 17:29:44 +05:30
|
|
|
install:
|
2007-11-28 21:15:03 +05:30
|
|
|
if ! test -d "$(BOOTDIR)"; then \
|
2007-11-20 17:29:44 +05:30
|
|
|
$(INSTALL) -d $(BOOTDIR) || exit $$?; \
|
2007-12-28 17:29:42 +05:30
|
|
|
for x in $(BOOT); do ln -snf /etc/init.d/"$$x" $(BOOTDIR)/"$$x" || exit $$?; done \
|
2007-11-20 17:29:44 +05:30
|
|
|
fi
|
2007-11-28 21:15:03 +05:30
|
|
|
if ! test -d "$(DEFAULTDIR)"; then \
|
2007-11-20 17:29:44 +05:30
|
|
|
$(INSTALL) -d $(DEFAULTDIR) || exit $$?; \
|
2007-12-28 17:29:42 +05:30
|
|
|
for x in $(DEFAULT); do ln -snf /etc/init.d/"$$x" $(DEFAULTDIR)/"$$x" || exit $$?; done \
|
2007-11-20 17:29:44 +05:30
|
|
|
fi
|
|
|
|
|
|
|
|
all:
|
|
|
|
clean:
|
2007-12-15 01:39:53 +05:30
|
|
|
|
|
|
|
# vim: set ts=4 :
|