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 /sh/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 'sh/Makefile')
-rw-r--r-- | sh/Makefile | 37 |
1 files changed, 12 insertions, 25 deletions
diff --git a/sh/Makefile b/sh/Makefile index c29462e3..c15c79e0 100644 --- a/sh/Makefile +++ b/sh/Makefile @@ -1,41 +1,28 @@ DIR= ${LIBEXECDIR}/sh -SRCS= functions.sh.in gendepends.sh.in init-common-post.sh.in \ - rc-functions.sh.in runscript.sh.in +SRCS= init.sh.in functions.sh.in gendepends.sh.in init-common-post.sh.in \ + rc-functions.sh.in runscript.sh.in ${SRCS-${OS}} INC= init-common-post.sh rc-mount.sh functions.sh rc-functions.sh -BIN= gendepends.sh init.sh runscript.sh +BIN= gendepends.sh init.sh runscript.sh ${BIN-${OS}} INSTALLAFTER= _installafter +SFX_PFX= .sh MK= ../mk include ${MK}/os.mk -ifeq (${OS},FreeBSD) -SRCS+= init.sh.in +SRCS-FreeBSD= +BIN-FreeBSD= -.SUFFIXES: .sh.BSD.in -.sh.BSD.in.sh: - ${SED} ${SED_REPLACE} ${SED_EXTRA} $< > $@ - -else ifeq (${OS},Linux) -SRCS+= init.sh.in init-early.sh.in udhcpc-hook.sh.in -BIN+= init-early.sh udhcpc-hook.sh - -.SUFFIXES: .sh.Linux.in -.sh.Linux.in.sh: - ${SED} ${SED_REPLACE} ${SED_EXTRA} $< > $@ +SRCS-Linux= init-early.sh.in udhcpc-hook.sh.in +BIN-Linux= init-early.sh udhcpc-hook.sh -else ifeq (${OS},NetBSD) -SRCS+= init.sh.in +SRCS-NetBSD= ifwatchd-carrier.sh.in ifwatchd-nocarrier.sh.in +BIN-NetBSD= ifwatchd-carrier.sh ifwatchd-nocarrier.sh -SRCS+= ifwatchd-carrier.sh.in ifwatchd-nocarrier.sh.in -BIN+= ifwatchd-carrier.sh ifwatchd-nocarrier.sh +include ${MK}/scripts.mk -.SUFFIXES: .sh.BSD.in -.sh.BSD.in.sh: +${SFX}.sh: ${SED} ${SED_REPLACE} ${SED_EXTRA} $< > $@ -endif - -include ${MK}/scripts.mk _installafter: ${INSTALL} -d ${DESTDIR}/${INITDIR} |