summaryrefslogtreecommitdiff
path: root/Makefile
diff options
context:
space:
mode:
authorRoy Marples <roy@marples.name>2008-01-10 16:35:59 +0000
committerRoy Marples <roy@marples.name>2008-01-10 16:35:59 +0000
commit43147845209873b0776bd75d363913fe25611f49 (patch)
treeab3295c30664476d8d05b0fe5fe9ace702ade5ea /Makefile
parent2643f2e605f102d2c2fa098d0cf5400d3795ed4a (diff)
downloadopenrc-43147845209873b0776bd75d363913fe25611f49.tar.gz
openrc-43147845209873b0776bd75d363913fe25611f49.tar.bz2
openrc-43147845209873b0776bd75d363913fe25611f49.tar.xz
Allow for OS and SUBOS folders so we can introduce NetBSD scripts whilst keeping BSD for all BSD's.
Diffstat (limited to 'Makefile')
-rw-r--r--Makefile40
1 files changed, 13 insertions, 27 deletions
diff --git a/Makefile b/Makefile
index 55d8c6a..f02c97e 100644
--- a/Makefile
+++ b/Makefile
@@ -1,33 +1,19 @@
# OpenRC Makefile
-# Copyright 2007 Roy Marples
+# Copyright 2007-2008 Roy Marples
# Distributed under the terms of the GNU General Public License v2
-NAME = openrc
-VERSION = 0.1
-PKG = $(NAME)-$(VERSION)
+NAME= openrc
+VERSION= 0.1
+PKG= ${NAME}-${VERSION}
-SUBDIR = conf.d doc etc init.d man net runlevels sh src
+SUBDIR= conf.d doc etc init.d man net runlevels sh src
-TOPDIR = .
-include $(TOPDIR)/default.mk
+MK= mk
+include ${MK}/os.mk
+include ${MK}/subdir.mk
+include ${MK}/dist.mk
-install::
- $(INSTALL) -d $(DESTDIR)$(RC_LIB)/init.d
- $(INSTALL) -d $(DESTDIR)$(RC_LIB)/tmp
-
-clean::
- rm -f *.bz2
-
-dist:
- $(INSTALL) -d /tmp/$(PKG)
- cp -RPp . /tmp/$(PKG)
- (cd /tmp/$(PKG); git clean; $(MAKE) clean)
- rm -rf /tmp/$(PKG)/*.bz2 /tmp/$(PKG)/.git /tmp/$(PKG)/test
- rm -rf /tmp/$(PKG)/.gitignore /tmp/$(PKG)/src/.gitignore
- sed -i.bak -e '/LDFLAGS += -Wl,-rpath ./ s/^/#/' /tmp/$(PKG)/src/Makefile
- rm -f /tmp/$(PKG)/src/Makefile.bak
- tar cvjpf $(PKG).tar.bz2 -C /tmp $(PKG)
- rm -rf /tmp/$(PKG)
- ls -l $(PKG).tar.bz2
-
-# vim: set ts=4 :
+INSTALLAFTER= _installafter
+_installafter:
+ ${INSTALL} -d ${DESTDIR}${RC_LIB}/init.d
+ ${INSTALL} -d ${DESTDIR}${RC_LIB}/tmp