From 9a539ebbe1ee0c8557fbcdf22e849534dcbd9b53 Mon Sep 17 00:00:00 2001 From: Mike Frysinger Date: Wed, 19 Oct 2011 21:30:39 -0400 Subject: further clean up OS differences in makefiles No need for if() logic. Signed-off-by: Mike Frysinger --- init.d/Makefile | 46 +++++++++++++++------------------------------- 1 file changed, 15 insertions(+), 31 deletions(-) (limited to 'init.d/Makefile') diff --git a/init.d/Makefile b/init.d/Makefile index 5fd33310..db681549 100644 --- a/init.d/Makefile +++ b/init.d/Makefile @@ -1,7 +1,7 @@ DIR= ${INITDIR} SRCS= bootmisc.in fsck.in hostname.in local.in localmount.in netmount.in \ network.in root.in savecache.in staticroute.in swap.in swclock.in \ - sysctl.in urandom.in + sysctl.in urandom.in ${SRCS-${OS}} BIN= ${OBJS} # Build our old net foo or not @@ -17,44 +17,28 @@ TARGETS+= ${_NET_LO} MK= ../mk include ${MK}/os.mk -ifeq ($(OS),FreeBSD) -NET_LO= net.lo0 - +NET_LO-FreeBSD= net.lo0 # Generic BSD scripts -SRCS+= hostid.in moused.in newsyslog.in pf.in rarpd.in rc-enabled.in \ - rpcbind.in savecore.in syslogd.in - +SRCS-FreeBSD= hostid.in moused.in newsyslog.in pf.in rarpd.in rc-enabled.in \ + rpcbind.in savecore.in syslogd.in # These are FreeBSD specific -SRCS+= adjkerntz.in devd.in dumpon.in ipfw.in mixer.in nscd.in \ - powerd.in syscons.in - -.SUFFIXES: .BSD.in -.BSD.in: - sed ${SED_REPLACE} ${SED_EXTRA} $< > $@ -else ifeq ($(OS),Linux) -NET_LO= net.lo +SRCS-FreeBSD+= adjkerntz.in devd.in dumpon.in ipfw.in mixer.in nscd.in \ + powerd.in syscons.in -SRCS+= devfs.in dmesg.in hwclock.in consolefont.in keymaps.in killprocs.in \ - modules.in mount-ro.in mtab.in numlock.in procfs.in sysfs.in \ - termencoding.in - -.SUFFIXES: .Linux.in -.Linux.in: - sed ${SED_REPLACE} ${SED_EXTRA} $< > $@ -else ifeq ($(OS),NetBSD) -NET_LO= net.lo0 +NET_LO-Linux= net.lo +SRCS-Linux= devfs.in dmesg.in hwclock.in consolefont.in keymaps.in \ + killprocs.in modules.in mount-ro.in mtab.in numlock.in \ + procfs.in sysfs.in termencoding.in +NET_LO-NetBSD= net.lo0 # Generic BSD scripts -SRCS+= hostid.in moused.in newsyslog.in pf.in rarpd.in rc-enabled.in \ - rpcbind.in savecore.in syslogd.in - +SRCS-NetBSD= hostid.in moused.in newsyslog.in pf.in rarpd.in rc-enabled.in \ + rpcbind.in savecore.in syslogd.in # These are NetBSD specific -SRCS+= devdb.in swap-blk.in ttys.in wscons.in +SRCS-NetBSD+= devdb.in swap-blk.in ttys.in wscons.in -.SUFFIXES: .BSD.in -.BSD.in: +${SFX}: sed ${SED_REPLACE} ${SED_EXTRA} $< > $@ -endif include ${MK}/scripts.mk -- cgit v1.2.3