From aa0d2b0e6da863d8de4bff951d5e1448ce7fdd40 Mon Sep 17 00:00:00 2001 From: Ian Jackson Date: Wed, 13 Nov 2019 15:05:14 +0000 Subject: [PATCH] various stuff into submakefiles --- Perdir.mk.in | 13 ++----------- subdirmk/cdeps.mk.in | 4 ++++ subdirmk/clean.mk.in | 9 +++++++++ 3 files changed, 15 insertions(+), 11 deletions(-) create mode 100644 subdirmk/cdeps.mk.in create mode 100644 subdirmk/clean.mk.in 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) -- 2.30.2