summaryrefslogtreecommitdiff
path: root/runlevels/Makefile
diff options
context:
space:
mode:
authorMike Frysinger <vapier@gentoo.org>2011-10-19 21:30:39 -0400
committerWilliam Hubbs <williamh@gentoo.org>2011-10-20 14:32:37 -0500
commit9a539ebbe1ee0c8557fbcdf22e849534dcbd9b53 (patch)
tree9936901aa8c8231d49145894456ff6f40a74c0ae /runlevels/Makefile
parent9c77502f964ef368892598b4fb30c4909fe3d360 (diff)
downloadopenrc-9a539ebbe1ee0c8557fbcdf22e849534dcbd9b53.tar.gz
openrc-9a539ebbe1ee0c8557fbcdf22e849534dcbd9b53.tar.bz2
openrc-9a539ebbe1ee0c8557fbcdf22e849534dcbd9b53.tar.xz
further clean up OS differences in makefiles
No need for if() logic. Signed-off-by: Mike Frysinger <vapier@gentoo.org>
Diffstat (limited to 'runlevels/Makefile')
-rw-r--r--runlevels/Makefile35
1 files changed, 18 insertions, 17 deletions
diff --git a/runlevels/Makefile b/runlevels/Makefile
index 1f9f9aa..f454950 100644
--- a/runlevels/Makefile
+++ b/runlevels/Makefile
@@ -1,7 +1,8 @@
BOOT= bootmisc fsck hostname localmount network \
- root staticroute swap sysctl urandom
+ root staticroute swap sysctl urandom ${BOOT-${OS}}
DEFAULT= local netmount
-SHUTDOWN= savecache
+SHUTDOWN= savecache ${SHUTDOWN-${OS}}
+SYSINIT= ${SYSINIT-${OS}}
LEVELDIR= ${DESTDIR}/${SYSCONFDIR}/runlevels
SYSINITDIR= ${LEVELDIR}/sysinit
@@ -16,25 +17,25 @@ include ${MK}/sys.mk
include ${MK}/os.mk
include ${MK}/gitignore.mk
-ifeq (${OS},BSD)
-BOOT+= hostid newsyslog savecore syslogd swap-blk
-else ifeq (${OS},FreeBSD)
-# Generic BSD stuff
-BOOT+= hostid net.lo0 newsyslog savecore syslogd
+BOOT-${OS}=
+SHUTDOWN-${OS}=
+SYSINIT-${OS}=
+
+BOOT-BSD= hostid newsyslog savecore syslogd swap-blk
-# FreeBSD specific stuff
-BOOT+= adjkerntz dumpon syscons
-else ifeq (${OS},Linux)
-SYSINIT+= devfs dmesg
-BOOT+= hwclock keymaps modules mtab procfs termencoding
-SHUTDOWN+= killprocs mount-ro
-else ifeq (${OS},NetBSD)
# Generic BSD stuff
-BOOT+= hostid net.lo0 newsyslog savecore syslogd
+BOOT-FreeBSD= hostid net.lo0 newsyslog savecore syslogd
+# FreeBSD specific stuff
+BOOT-FreeBSD+= adjkerntz dumpon syscons
+
+BOOT-Linux= hwclock keymaps modules mtab procfs termencoding
+SHUTDOWN-Linux= killprocs mount-ro
+SYSINIT-Linux= devfs dmesg
+# Generic BSD stuff
+BOOT-NetBSD= hostid net.lo0 newsyslog savecore syslogd
# NetBSD specific stuff
-BOOT+= devdb swap-blk ttys wscons
-endif
+BOOT-NetBSD+= devdb swap-blk ttys wscons
all: