From: Ian Jackson Date: Wed, 13 Nov 2019 15:05:14 +0000 (+0000) Subject: various stuff into submakefiles X-Git-Tag: subdirmk/0.1~77 X-Git-Url: https://www.chiark.greenend.org.uk/ucgi/~ian/git?p=subdirmk.git;a=commitdiff_plain;h=aa0d2b0e6da863d8de4bff951d5e1448ce7fdd40 various stuff into submakefiles --- diff --git a/Perdir.mk.in b/Perdir.mk.in index f819348..2b08993 100644 --- a/Perdir.mk.in +++ b/Perdir.mk.in @@ -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 index 0000000..7df96f3 --- /dev/null +++ b/subdirmk/cdeps.mk.in @@ -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 index 0000000..accb2f5 --- /dev/null +++ b/subdirmk/clean.mk.in @@ -0,0 +1,9 @@ +&CLEAN += & *~ *.tmp +&CLEAN += $(&OBJECTS) +&CLEAN += $(&DEPFILES) +&CLEAN += $(&TARGETS) + +# &TARGETS_clean + +&/clean: + $(RM) $(&CLEAN)