aboutsummaryrefslogtreecommitdiff
path: root/Makefile
diff options
context:
space:
mode:
authorRoy Marples <roy@marples.name>2007-11-19 16:42:28 +0000
committerRoy Marples <roy@marples.name>2007-11-19 16:42:28 +0000
commit88ccccc22a3f8938bcd43ffbe86d3b9c3c814ad3 (patch)
treee4637b861c8a4f65713d6825b8c6749bdfa0fa66 /Makefile
parent81715c31594ac2f02b1d73dc9df0a7e9a19ca9a7 (diff)
Move runlevel and lib logic to the sub Makefiles
Diffstat (limited to 'Makefile')
-rw-r--r--Makefile18
1 files changed, 1 insertions, 17 deletions
diff --git a/Makefile b/Makefile
index d75e7139..5fdff095 100644
--- a/Makefile
+++ b/Makefile
@@ -6,29 +6,15 @@ NAME = openrc
VERSION = 1.0
PKG = $(NAME)-$(VERSION)
-SUBDIR = conf.d etc init.d man net sh src
+SUBDIR = conf.d etc init.d man net runlevels sh src
TOPDIR = .
include $(TOPDIR)/default.mk
include $(TOPDIR)/Makefile.$(OS)
install::
- # Don't install runlevels if they already exist
- if ! test -d $(DESTDIR)/etc/runlevels ; then \
- (cd runlevels; $(MAKE) install) ; \
- test -d runlevels.$(OS) && (cd runlevels.$(OS); $(MAKE) install) ; \
- $(INSTALL_DIR) $(DESTDIR)/etc/runlevels/single || exit $$? ; \
- $(INSTALL_DIR) $(DESTDIR)/etc/runlevels/nonetwork || exit $$? ; \
- fi
ln -snf ../../$(RC_LIB)/sh/net.sh $(DESTDIR)/etc/init.d/$(NET_LO) || exit $$?
ln -snf ../../$(RC_LIB)/sh/functions.sh $(DESTDIR)/etc/init.d || exit $$?
- # Handle lib correctly
- if test $(LIB) != "lib" ; then \
- sed -i'.bak' -e 's,/lib/,/$(LIB)/,g' $(DESTDIR)/$(RC_LIB)/sh/functions.sh || exit $$? ; \
- rm -f $(DESTDIR)/$(RC_LIB)/sh/functions.sh.bak ; \
- sed -i'.bak' -e 's,/lib/,/$(LIB)/,g' $(DESTDIR)/$(RC_LIB)/sh/rc-functions.sh || exit $$? ; \
- rm -f $(DESTDIR)/$(RC_LIB)/sh/rc-functions.sh.bak ; \
- fi
diststatus:
if test -d .svn ; then \
@@ -51,6 +37,4 @@ distit:
dist: diststatus distit
-.PHONY: layout dist distit diststatus
-
# vim: set ts=4 :