Module: sip-router
Branch: ser_core_cvs
Commit: 7b3e3db2f2e88e5f86f4988cada5c293e83e12ec
URL:
http://git.sip-router.org/cgi-bin/gitweb.cgi/sip-router/?a=commit;h=7b3e3db…
Author: Andrei Pelinescu-Onciul <andrei(a)iptel.org>
Committer: Andrei Pelinescu-Onciul <andrei(a)iptel.org>
Date: Wed Apr 22 13:48:36 2009 +0000
makefile.doc: support all targets and dep. fixes
- support all the *clean and *proper targets
- include dependencies only if needed
---
Makefile.doc | 18 ++++++++++++++----
1 files changed, 14 insertions(+), 4 deletions(-)
diff --git a/Makefile.doc b/Makefile.doc
index 4cc6791..095aa3c 100644
--- a/Makefile.doc
+++ b/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