瀏覽代碼

- targets to build and clean doxygen documentation

Jan Janak 18 年之前
父節點
當前提交
979154084f
共有 1 個文件被更改,包括 12 次插入1 次删除
  1. 12 1
      Makefile

+ 12 - 1
Makefile

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