diff options
author | Mike Frysinger <vapier@gentoo.org> | 2011-10-19 21:30:39 -0400 |
---|---|---|
committer | William Hubbs <williamh@gentoo.org> | 2011-10-20 14:32:37 -0500 |
commit | 9a539ebbe1ee0c8557fbcdf22e849534dcbd9b53 (patch) | |
tree | 9936901aa8c8231d49145894456ff6f40a74c0ae /etc/Makefile | |
parent | 9c77502f964ef368892598b4fb30c4909fe3d360 (diff) |
further clean up OS differences in makefiles
No need for if() logic.
Signed-off-by: Mike Frysinger <vapier@gentoo.org>
Diffstat (limited to 'etc/Makefile')
-rw-r--r-- | etc/Makefile | 30 |
1 files changed, 16 insertions, 14 deletions
diff --git a/etc/Makefile b/etc/Makefile index a7976b6a..8bcf19ba 100644 --- a/etc/Makefile +++ b/etc/Makefile @@ -1,24 +1,26 @@ DIR= ${SYSCONFDIR} -CONF= rc.conf +SRCS= rc.conf.in rc.in rc.shutdown.in +BIN= ${BIN-${OS}} +CONF= rc.conf ${BIN-${OS}} CLEANFILES+= rc.conf MK= ../mk include ${MK}/os.mk -ifeq (${OS},FreeBSD) -SED_EXTRA= -e 's:@TERM@:cons25:g' -SRCS+= rc.conf.in rc.in rc.shutdown.in -CONF+= devd.conf -BIN+= rc rc.shutdown rc.devd -else ifeq (${OS},Linux) -SED_EXTRA= -e 's:@TERM@:wsvt25:g' -SRCS+= rc.conf.in rc.in rc.shutdown.in -else ifeq (${OS},NetBSD) -SED_EXTRA= -e 's:@TERM@:wsvt25:g' -SRCS+= rc.conf.in rc.in rc.shutdown.in -BIN+= rc rc.shutdown -endif +SED_EXTRA-FreeBSD= -e 's:@TERM@:cons25:g' +BIN-FreeBSD= rc rc.shutdown rc.devd +CONF-FreeBSD= devd.conf + +SED_EXTRA-Linux= -e 's:@TERM@:wsvt25:g' +BIN-Linux= +CONF-Linux= + +SED_EXTRA-NetBSD= -e 's:@TERM@:wsvt25:g' +BIN-NetBSD= rc rc.shutdown +CONF-NetBSD= + +SED_EXTRA= ${SED_EXTRA-${OS}} include ${MK}/scripts.mk |