Even in the toplevel. This cleans some more things but doesn't fix
all the lack of clean bugs. Right now the effect is to remove
Subdir.mk.tmp and main.mk.tmp, if they exist.
Signed-off-by: Ian Jackson <ijackson@chiark.greenend.org.uk>
# &TARGETS_check
# &TARGETS_fullcheck
+
+&:include subdirmk/cdeps.sd.mk
+&:include subdirmk/clean.sd.mk
endif
&OBJECTS += $(OBJECTS) $(TEST_OBJECTS)
-&:include subdirmk/cdeps.sd.mk
STALE_PYTHON_FILES= $(foreach e, py pyc, \
$(foreach p, /usr /usr/local, \
clean::
$(RM) -f *.o *.yy.[ch] *.tab.[ch] $(TARGETS) core version.c
$(RM) -f *.pyc *~ eax-*-test.confirm eax-*-test
- $(RM) $(&CLEAN)
$(RM) -rf __pycache__
$(RM) -f msgcode-test.confirm msgcode-test
$(CHECK_SILENT) printf "&/$* "
$(CHECK_SILENT) touch $@
+&CLEAN += & *.so
+
&clean::
- $(RM) -f & *.o *.so
$(RM) -rf & tmp
$(RM) -rf & d-*
-
-&:include subdirmk/clean.sd.mk
&sites.conf: $(src)/make-secnet-sites &^/sites Subdir.mk
$(src)/make-secnet-sites &^/sites &sites.conf
-&clean::
- rm -f *~ ./#*# *.new
-
-&:include subdirmk/clean.sd.mk
+&CLEAN += *.new