chiark / gitweb /
various stuff into submakefiles
authorIan Jackson <ijackson@chiark.greenend.org.uk>
Wed, 13 Nov 2019 15:05:14 +0000 (15:05 +0000)
committerIan Jackson <ijackson@chiark.greenend.org.uk>
Wed, 13 Nov 2019 15:05:14 +0000 (15:05 +0000)
Perdir.mk.in
subdirmk/cdeps.mk.in [new file with mode: 0644]
subdirmk/clean.mk.in [new file with mode: 0644]

index f819348..2b08993 100644 (file)
@@ -1,12 +1,3 @@
 
-&CLEAN += & *~ *.tmp
-&CLEAN += $(&OBJECTS) $(&DEPFILES)
-&CLEAN += $(&TARGETS)
-
-# &TARGETS_clean
-
-&/clean:
-       $(RM) $(&CLEAN)
-
-&DEPFILES += $(patsubst %.o,%.d,$(&OBJECTS))
--include $(&DEPFILES)
+&:include subdirmk/cdeps.mk.in
+&:include subdirmk/clean.mk.in
diff --git a/subdirmk/cdeps.mk.in b/subdirmk/cdeps.mk.in
new file mode 100644 (file)
index 0000000..7df96f3
--- /dev/null
@@ -0,0 +1,4 @@
+
+&DEPFILES += $(patsubst %.o,%.d,$(&OBJECTS))
+-include $(&DEPFILES)
+
diff --git a/subdirmk/clean.mk.in b/subdirmk/clean.mk.in
new file mode 100644 (file)
index 0000000..accb2f5
--- /dev/null
@@ -0,0 +1,9 @@
+&CLEAN += & *~ *.tmp
+&CLEAN += $(&OBJECTS)
+&CLEAN += $(&DEPFILES)
+&CLEAN += $(&TARGETS)
+
+# &TARGETS_clean
+
+&/clean:
+       $(RM) $(&CLEAN)