diff options
author | Roy Marples <roy@marples.name> | 2007-11-20 17:37:15 +0000 |
---|---|---|
committer | Roy Marples <roy@marples.name> | 2007-11-20 17:37:15 +0000 |
commit | 9635b455c7ba6d5a7e196ac8776fc28c6f1e03e4 (patch) | |
tree | eb58ecc87b35a3d27c94e19c7a01c51798cdc68f | |
parent | 18acf0803c49e5921cac4b065d5962a51df89231 (diff) |
Introduce CONTENTS variable into Makefiles to list the contents of the directory, excluding the Makefile for to Make life easier
-rw-r--r-- | conf.d.BSD/Makefile | 2 | ||||
-rw-r--r-- | conf.d/Makefile | 3 | ||||
-rw-r--r-- | default.mk | 5 | ||||
-rw-r--r-- | init.d.BSD/Makefile | 2 | ||||
-rw-r--r-- | init.d.Linux/Makefile | 2 | ||||
-rw-r--r-- | init.d/Makefile | 5 | ||||
-rw-r--r-- | net.BSD/Makefile | 4 | ||||
-rw-r--r-- | net.Linux/Makefile | 5 | ||||
-rw-r--r-- | net/Makefile | 5 | ||||
-rw-r--r-- | sh.BSD/Makefile | 2 | ||||
-rw-r--r-- | sh.Linux/Makefile | 2 |
11 files changed, 18 insertions, 19 deletions
diff --git a/conf.d.BSD/Makefile b/conf.d.BSD/Makefile index b302ac01..dd2e315b 100644 --- a/conf.d.BSD/Makefile +++ b/conf.d.BSD/Makefile @@ -1,5 +1,5 @@ DIR = /etc/conf.d -CONF = localmount moused net.example powerd syscons +CONF = $(CONTENTS) TOPDIR = .. include $(TOPDIR)/default.mk diff --git a/conf.d/Makefile b/conf.d/Makefile index cce63f66..f26da996 100644 --- a/conf.d/Makefile +++ b/conf.d/Makefile @@ -1,6 +1,5 @@ DIR = /etc/conf.d -CONF = bootmisc checkfs clock env_whitelist hostname local.start local.stop \ - net rc urandom +CONF = $(CONTENTS) TOPDIR = .. include $(TOPDIR)/default.mk @@ -11,6 +11,11 @@ _OS_SH = u=`uname -s`; case "$${u}" in *BSD|DragonFly) echo "BSD";; *) echo "$${ _OS != $(_OS_SH) OS ?= $(_OS)$(shell $(_OS_SH)) +# We store the contents of the directory for ease of use in Makefiles +_CONTENTS_SH = ls -1 | grep -v Makefile | xargs +_CONTENTS != $(_CONTENTS_SH) +CONTENTS = $(_CONTENTS)$(shell $(_CONTENTS_SH)) + # Recursive rules # Adapted from FreeBSDs bsd.subdir.mk ECHODIR ?= true diff --git a/init.d.BSD/Makefile b/init.d.BSD/Makefile index 41bafce5..c50e550a 100644 --- a/init.d.BSD/Makefile +++ b/init.d.BSD/Makefile @@ -1,5 +1,5 @@ DIR = /etc/init.d -BIN = clock ipfw moused powerd rarpd rpcbind syscons sysctl syslogd +BIN = $(CONTENTS) TOPDIR = .. include $(TOPDIR)/default.mk diff --git a/init.d.Linux/Makefile b/init.d.Linux/Makefile index 3ed63756..c50e550a 100644 --- a/init.d.Linux/Makefile +++ b/init.d.Linux/Makefile @@ -1,5 +1,5 @@ DIR = /etc/init.d -BIN = clock consolefont keymaps modules numlock sysctl +BIN = $(CONTENTS) TOPDIR = .. include $(TOPDIR)/default.mk diff --git a/init.d/Makefile b/init.d/Makefile index 19f5fb43..3b4e1a27 100644 --- a/init.d/Makefile +++ b/init.d/Makefile @@ -1,6 +1,5 @@ -DIR = /etc/init.d -BIN = bootmisc checkfs checkroot hostname local localmount \ - netmount rmnologin urandom halt.sh +DIR = /etc/init.d +BIN = $(CONTENTS) TOPDIR = .. include $(TOPDIR)/default.mk diff --git a/net.BSD/Makefile b/net.BSD/Makefile index cb5d2077..79e0f851 100644 --- a/net.BSD/Makefile +++ b/net.BSD/Makefile @@ -1,5 +1,5 @@ -DIR = $(RC_LIB)/net -CONF = ifconfig.sh iwconfig.sh +DIR = $(RC_LIB)/net +CONF = $(CONTENTS) TOPDIR = .. include $(TOPDIR)/default.mk diff --git a/net.Linux/Makefile b/net.Linux/Makefile index 40c40f2d..79e0f851 100644 --- a/net.Linux/Makefile +++ b/net.Linux/Makefile @@ -1,8 +1,5 @@ DIR = $(RC_LIB)/net -CONF = adsl.sh apipa.sh arping.sh bonding.sh br2684ctl.sh bridge.sh \ - ccwgroup.sh clip.sh ifconfig.sh ifplugd.sh ip6to4.sh ipppd.sh \ - iproute2.sh iwconfig.sh netplugd.sh pppd.sh pump.sh tuntap.sh \ - udhcpc.sh vlan.sh +CONF = $(CONTENTS) TOPDIR = .. include $(TOPDIR)/default.mk diff --git a/net/Makefile b/net/Makefile index 017f4e5d..79e0f851 100644 --- a/net/Makefile +++ b/net/Makefile @@ -1,6 +1,5 @@ -DIR = $(RC_LIB)/net -CONF = dhclient.sh dhcpcd.sh macchanger.sh macnet.sh ssidnet.sh system.sh \ - wpa_supplicant.sh +DIR = $(RC_LIB)/net +CONF = $(CONTENTS) TOPDIR = .. include $(TOPDIR)/default.mk diff --git a/sh.BSD/Makefile b/sh.BSD/Makefile index ec4ffa27..19b68f36 100644 --- a/sh.BSD/Makefile +++ b/sh.BSD/Makefile @@ -1,5 +1,5 @@ DIR = $(RC_LIB)/sh -BIN = init.sh +BIN = $(CONTENTS) TOPDIR = .. include $(TOPDIR)/default.mk diff --git a/sh.Linux/Makefile b/sh.Linux/Makefile index b6592c4b..19b68f36 100644 --- a/sh.Linux/Makefile +++ b/sh.Linux/Makefile @@ -1,5 +1,5 @@ DIR = $(RC_LIB)/sh -BIN = init.sh init-early.sh +BIN = $(CONTENTS) TOPDIR = .. include $(TOPDIR)/default.mk |