Browse code

- make doxygen and clean_doxygen targets available in module Makefiles

Jan Janak authored on 13/08/2007 12:37:02
Showing 4 changed files
... ...
@@ -122,9 +122,6 @@ module_group_stable=cpl-c dbtext jabber osp sms
122 122
 # not have dependencies
123 123
 module_group_experimental=tls oracle iptrtpproxy
124 124
 
125
-# Doxygen directory
126
-doxygen_dir=doc/doxygen
127
-
128 125
 # if not set on the cmd. line or the env, exclude the below modules.
129 126
 ifneq ($(group_include),)
130 127
 	# For group_include, default all modules are excluded except those in 
... ...
@@ -329,13 +326,9 @@ dbg: ser
329 329
 
330 330
 .PHONY: tar
331 331
 .PHONY: dist
332
-.PHONY: doxygen
333 332
 
334 333
 dist: tar
335 334
 
336
-doxygen:
337
-	doxygen $(doxygen_dir)/ser.doxygen
338
-
339 335
 tar: 
340 336
 	$(TAR) -C .. \
341 337
 		--exclude=$(notdir $(CURDIR))/test* \
... ...
@@ -544,14 +537,11 @@ install-man: $(man_prefix)/$(man_dir)/man8 $(man_prefix)/$(man_dir)/man5
544 544
 		chmod 644  $(man_prefix)/$(man_dir)/man5/ser.cfg.5
545 545
 
546 546
 
547
-.PHONY: clean_libs clean_doxygen
547
+.PHONY: clean_libs
548 548
 
549 549
 clean_libs:
550 550
 			$(MAKE) -C lib proper
551 551
 
552
-clean_doxygen:
553
-		rm -rf $(doxygen_dir)/output/{xml,man,rtf,latex,html}
554
-
555 552
 
556 553
 # cleaning in libs always when cleaning ser
557 554
 clean:	clean_libs
... ...
@@ -166,6 +166,9 @@ endif
166 166
 endif
167 167
 endif
168 168
 
169
+# Doxygen directory
170
+doxygen_dir=doc/doxygen
171
+
169 172
  # install location
170 173
 DESTDIR ?= $(LOCALBASE)
171 174
 PREFIX ?= $(DESTDIR)
... ...
@@ -68,3 +68,4 @@ install-libs:
68 68
 	@for lib in $(dir $(SER_LIBS)); do \
69 69
 		$(MAKE) -C "$${lib}" install-if-newer ;\
70 70
 	done
71
+
... ...
@@ -173,6 +173,18 @@ mantainer-clean: distclean
173 173
 	 done 
174 174
 
175 175
 
176
+.PHONY: doxygen
177
+doxygen:
178
+	-@mkdir -p $(doxygen_dir)
179
+	doxygen ./$(COREPATH)/doc/doxygen/ser.doxygen
180
+
181
+
182
+.PHONY: clean_doxygen
183
+clean_doxygen:
184
+	-@rm -rf $(doxygen_dir)/{xml,man,rtf,latex,html}
185
+	-@rmdir --ignore-fail-on-non-empty -p $(doxygen_dir) || true
186
+
187
+
176 188
 .PHONY: TAGS
177 189
 TAGS:
178 190
 	$(MKTAGS)