aboutsummaryrefslogtreecommitdiff
path: root/sys/rules.mk
diff options
context:
space:
mode:
authorNicholas Noll <nbnoll@eml.cc>2020-04-19 09:23:31 -0700
committerNicholas Noll <nbnoll@eml.cc>2020-04-19 09:23:31 -0700
commit60ce7fba21a6d37c0acbe152039fbc3d0e692bf0 (patch)
tree73fa0295dace25c23a00f4ec4e654b4f4fb85619 /sys/rules.mk
parent1ae9a10d56fca8fe585e77533c49e5c9d680ff12 (diff)
chore: reorganized structure to allow for more parallel projects
Diffstat (limited to 'sys/rules.mk')
-rw-r--r--sys/rules.mk20
1 files changed, 20 insertions, 0 deletions
diff --git a/sys/rules.mk b/sys/rules.mk
new file mode 100644
index 0000000..b4b0159
--- /dev/null
+++ b/sys/rules.mk
@@ -0,0 +1,20 @@
+# ---- Push on stack ----
+SP := $(SP).x
+DIRSTACK_$(SP) := $(d)
+d := $(DIR)
+
+# Iterate through subdirectory tree
+DIR := $(d)/libc
+include $(DIR)/rules.mk
+
+DIR := $(d)/cc
+include $(DIR)/rules.mk
+
+DIR := $(d)/nixos
+include $(DIR)/rules.mk
+
+# ---- Pop off stack ----
+-include $(DEPS_$(d))
+
+d := $(DIRSTACK_$(SP))
+SP := $(basename $(SP))