summaryrefslogtreecommitdiff
path: root/net/Makefile
diff options
context:
space:
mode:
Diffstat (limited to 'net/Makefile')
-rw-r--r--net/Makefile28
1 files changed, 9 insertions, 19 deletions
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