Explorar o código

- targets to build and clean doxygen documentation

Jan Janak %!s(int64=18) %!d(string=hai) anos
pai
achega
979154084f
Modificáronse 1 ficheiros con 12 adicións e 1 borrados
  1. 12 1
      Makefile

+ 12 - 1
Makefile

@@ -120,6 +120,9 @@ module_group_stable=cpl-c dbtext jabber osp sms
 # not have dependencies
 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.
 ifneq ($(group_include),)
 	# For group_include, default all modules are excluded except those in 
@@ -314,9 +317,13 @@ dbg: ser
 
 .PHONY: tar
 .PHONY: dist
+.PHONY: doxygen
 
 dist: tar
 
+doxygen:
+	doxygen $(doxygen_dir)/ser.doxygen
+
 tar: 
 	$(TAR) -C .. \
 		--exclude=$(notdir $(CURDIR))/test* \
@@ -544,11 +551,15 @@ install-modules:	install-libs
 
 endif
 
-.PHONY: clean_libs libs install-libs
+.PHONY: clean_libs libs install-libs clean_doxygen
 
 clean_libs:
 			$(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
 clean:	clean_libs