summaryrefslogtreecommitdiff
path: root/default.mk
diff options
context:
space:
mode:
Diffstat (limited to 'default.mk')
-rw-r--r--default.mk5
1 files changed, 5 insertions, 0 deletions
diff --git a/default.mk b/default.mk
index 6ec11c3..661e447 100644
--- a/default.mk
+++ b/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