further clean up OS differences in makefiles

No need for if() logic.

Signed-off-by: Mike Frysinger <vapier@gentoo.org>
This commit is contained in:
Mike Frysinger
2011-10-19 21:30:39 -04:00
committed by William Hubbs
parent 9c77502f96
commit 9a539ebbe1
15 changed files with 93 additions and 149 deletions

View File

@@ -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