From 88ccccc22a3f8938bcd43ffbe86d3b9c3c814ad3 Mon Sep 17 00:00:00 2001 From: Roy Marples Date: Mon, 19 Nov 2007 16:42:28 +0000 Subject: Move runlevel and lib logic to the sub Makefiles --- Makefile | 18 +----------------- 1 file changed, 1 insertion(+), 17 deletions(-) (limited to 'Makefile') 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 : -- cgit v1.2.3