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 /net | |
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 'net')
-rw-r--r-- | net/Makefile | 28 |
1 files changed, 9 insertions, 19 deletions
diff --git a/net/Makefile b/net/Makefile index f783e40a..664800df 100644 --- a/net/Makefile +++ b/net/Makefile @@ -1,34 +1,24 @@ DIR= ${LIBEXECDIR}/net -SRCS= ifconfig.sh.in +SRCS= ifconfig.sh.in ${SRCS-${OS}} INC= dhclient.sh dhcpcd.sh ifconfig.sh macchanger.sh macnet.sh \ - ssidnet.sh system.sh wpa_supplicant.sh + ssidnet.sh system.sh wpa_supplicant.sh ${INC-${OS}} MK= ../mk include ${MK}/os.mk -ifeq (${OS},FreeBSD) -SRCS+= iwconfig.sh.in -INC+= iwconfig.sh +SRCS-FreeBSD= iwconfig.sh.in +INC-FreeBSD= iwconfig.sh -.SUFFIXES: .sh.BSD.in -.sh.BSD.in.sh: - ${CP} $< $@ -else ifeq (${OS},Linux) -SRCS+= iwconfig.sh.in -INC+= adsl.sh apipa.sh arping.sh bonding.sh br2684ctl.sh bridge.sh \ +SRCS-Linux= iwconfig.sh.in +INC-Linux= adsl.sh apipa.sh arping.sh bonding.sh br2684ctl.sh bridge.sh \ ccwgroup.sh clip.sh ethtool.sh iproute2.sh ifplugd.sh ip6to4.sh \ ipppd.sh iwconfig.sh netplugd.sh pppd.sh pump.sh tuntap.sh udhcpc.sh \ vlan.sh -.SUFFIXES: .sh.Linux.in -.sh.Linux.in.sh: - ${CP} $< $@ -else ifeq (${OS},NetBSD) -INC+= ifwatchd.sh +SRCS-NetBSD= +INC-NetBSD= ifwatchd.sh -.SUFFIXES: .sh.BSD.in -.sh.BSD.in.sh: +${SFX}.sh: ${CP} $< $@ -endif include ${MK}/scripts.mk |