Преглед на файлове

makefile.doc: support all targets and dep. fixes

- support all the *clean and *proper targets
- include dependencies only if needed
Andrei Pelinescu-Onciul преди 16 години
родител
ревизия
7b3e3db2f2
променени са 1 файла, в които са добавени 14 реда и са изтрити 4 реда
  1. 14 4
      Makefile.doc

+ 14 - 4
Makefile.doc

@@ -147,15 +147,25 @@ clean:
 	@rm -f $(pdf_files)
 	@rm -f $(html_files)
 
-.PHONY: proper realclean distclean
-proper realclean distclean: clean
+.PHONY: proper distclean realclean maintainer-clean
+proper realclean distclean maintainer-clean: clean
 	@rm -f $(dep_files) *~
 
+maintainer-clean: clean-tmp
+
+.PHONY: clean-tmp
+clean-tmp:
+	-rm -f TAGS tags *.dbg .*.swp
+
+
 
 ifeq (,$(MAKECMDGOALS))
 include $(dep_files) 
+else
+ifeq (,$(strip $(nodep_targets)))
+include $(ROOT_DIR)/Makefile.targets
 endif
-ifneq (,$(filter-out clean proper realclean distclean check, $(MAKECMDGOALS)))
+ifneq (,$(filter-out $(nodep_targets) check, $(MAKECMDGOALS)))
 include $(dep_files)
 endif
-
+endif