Introduce CONTENTS variable into Makefiles to list the contents of the directory, excluding the Makefile for to Make life easier
This commit is contained in:
parent
18acf0803c
commit
9635b455c7
@ -1,5 +1,5 @@
|
||||
DIR = /etc/conf.d
|
||||
CONF = localmount moused net.example powerd syscons
|
||||
CONF = $(CONTENTS)
|
||||
|
||||
TOPDIR = ..
|
||||
include $(TOPDIR)/default.mk
|
||||
|
@ -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
|
||||
|
@ -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
|
||||
|
@ -1,5 +1,5 @@
|
||||
DIR = /etc/init.d
|
||||
BIN = clock consolefont keymaps modules numlock sysctl
|
||||
BIN = $(CONTENTS)
|
||||
|
||||
TOPDIR = ..
|
||||
include $(TOPDIR)/default.mk
|
||||
|
@ -1,6 +1,5 @@
|
||||
DIR = /etc/init.d
|
||||
BIN = bootmisc checkfs checkroot hostname local localmount \
|
||||
netmount rmnologin urandom halt.sh
|
||||
BIN = $(CONTENTS)
|
||||
|
||||
TOPDIR = ..
|
||||
include $(TOPDIR)/default.mk
|
||||
|
@ -1,5 +1,5 @@
|
||||
DIR = $(RC_LIB)/net
|
||||
CONF = ifconfig.sh iwconfig.sh
|
||||
CONF = $(CONTENTS)
|
||||
|
||||
TOPDIR = ..
|
||||
include $(TOPDIR)/default.mk
|
||||
|
@ -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
|
||||
|
@ -1,6 +1,5 @@
|
||||
DIR = $(RC_LIB)/net
|
||||
CONF = dhclient.sh dhcpcd.sh macchanger.sh macnet.sh ssidnet.sh system.sh \
|
||||
wpa_supplicant.sh
|
||||
CONF = $(CONTENTS)
|
||||
|
||||
TOPDIR = ..
|
||||
include $(TOPDIR)/default.mk
|
||||
|
@ -1,5 +1,5 @@
|
||||
DIR = $(RC_LIB)/sh
|
||||
BIN = init.sh
|
||||
BIN = $(CONTENTS)
|
||||
|
||||
TOPDIR = ..
|
||||
include $(TOPDIR)/default.mk
|
||||
|
@ -1,5 +1,5 @@
|
||||
DIR = $(RC_LIB)/sh
|
||||
BIN = init.sh init-early.sh
|
||||
BIN = $(CONTENTS)
|
||||
|
||||
TOPDIR = ..
|
||||
include $(TOPDIR)/default.mk
|
||||
|
Loading…
Reference in New Issue
Block a user