aboutsummaryrefslogtreecommitdiff
path: root/mk/subdir.mk
diff options
context:
space:
mode:
Diffstat (limited to 'mk/subdir.mk')
-rw-r--r--mk/subdir.mk8
1 files changed, 8 insertions, 0 deletions
diff --git a/mk/subdir.mk b/mk/subdir.mk
new file mode 100644
index 0000000..0a65eb6
--- /dev/null
+++ b/mk/subdir.mk
@@ -0,0 +1,8 @@
+define subdir
+
+old-path := $$(path)
+path := $$(old-path)/$1
+include $1/build.mk
+path := $$(old-path)
+
+endef