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 --- net/Makefile | 28 +++++++++------------------- 1 file changed, 9 insertions(+), 19 deletions(-) (limited to 'net/Makefile') diff --git a/net/Makefile b/net/Makefile index f783e40..664800d 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 -- cgit v1.2.3