aboutsummaryrefslogtreecommitdiff
path: root/sys/rules.mk
diff options
context:
space:
mode:
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))