2007-11-20 17:29:44 +05:30
|
|
|
# Handy runlevel stuff
|
|
|
|
|
|
|
|
LEVELDIR = $(DESTDIR)/etc/runlevels
|
|
|
|
BOOTDIR = $(LEVELDIR)/boot
|
|
|
|
DEFAULTDIR = $(LEVELDIR)/default
|
|
|
|
|
|
|
|
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-11-28 21:15:03 +05:30
|
|
|
for x in $(BOOT); do ln -snf ../../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-11-28 21:15:03 +05:30
|
|
|
for x in $(DEFAULT); do ln -snf ../../init.d/"$$x" $(DEFAULTDIR)/"$$x" || exit $$?; done \
|
2007-11-20 17:29:44 +05:30
|
|
|
fi
|
|
|
|
|
|
|
|
all:
|
|
|
|
clean:
|