Преглед изворни кода

- make doxygen and clean_doxygen targets available in module Makefiles

Jan Janak пре 18 година
родитељ
комит
a51f9e36f2
4 измењених фајлова са 17 додато и 11 уклоњено
  1. 1 11
      Makefile
  2. 3 0
      Makefile.defs
  3. 1 0
      Makefile.modules
  4. 12 0
      Makefile.rules

+ 1 - 11
Makefile

@@ -122,9 +122,6 @@ module_group_stable=cpl-c dbtext jabber osp sms
 # not have dependencies
 module_group_experimental=tls oracle iptrtpproxy
 
-# Doxygen directory
-doxygen_dir=doc/doxygen
-
 # if not set on the cmd. line or the env, exclude the below modules.
 ifneq ($(group_include),)
 	# For group_include, default all modules are excluded except those in 
@@ -329,13 +326,9 @@ dbg: ser
 
 .PHONY: tar
 .PHONY: dist
-.PHONY: doxygen
 
 dist: tar
 
-doxygen:
-	doxygen $(doxygen_dir)/ser.doxygen
-
 tar: 
 	$(TAR) -C .. \
 		--exclude=$(notdir $(CURDIR))/test* \
@@ -544,14 +537,11 @@ install-man: $(man_prefix)/$(man_dir)/man8 $(man_prefix)/$(man_dir)/man5
 		chmod 644  $(man_prefix)/$(man_dir)/man5/ser.cfg.5
 
 
-.PHONY: clean_libs clean_doxygen
+.PHONY: clean_libs
 
 clean_libs:
 			$(MAKE) -C lib proper
 
-clean_doxygen:
-		rm -rf $(doxygen_dir)/output/{xml,man,rtf,latex,html}
-
 
 # cleaning in libs always when cleaning ser
 clean:	clean_libs

+ 3 - 0
Makefile.defs

@@ -166,6 +166,9 @@ endif
 endif
 endif
 
+# Doxygen directory
+doxygen_dir=doc/doxygen
+
  # install location
 DESTDIR ?= $(LOCALBASE)
 PREFIX ?= $(DESTDIR)

+ 1 - 0
Makefile.modules

@@ -68,3 +68,4 @@ install-libs:
 	@for lib in $(dir $(SER_LIBS)); do \
 		$(MAKE) -C "$${lib}" install-if-newer ;\
 	done
+

+ 12 - 0
Makefile.rules

@@ -173,6 +173,18 @@ mantainer-clean: distclean
 	 done 
 
 
+.PHONY: doxygen
+doxygen:
+	-@mkdir -p $(doxygen_dir)
+	doxygen ./$(COREPATH)/doc/doxygen/ser.doxygen
+
+
+.PHONY: clean_doxygen
+clean_doxygen:
+	-@rm -rf $(doxygen_dir)/{xml,man,rtf,latex,html}
+	-@rmdir --ignore-fail-on-non-empty -p $(doxygen_dir) || true
+
+
 .PHONY: TAGS
 TAGS:
 	$(MKTAGS)