-.PHONY: build check doc doxygen clean gtags htags
+.PHONY: build check doc doxygen clean gtags htags clean_htags
MKDIR = mkdir -p
MV = mv
DOXYGEN = doxygen
HTAGS = htags
HTAGSFLAG = -anosx
+all: build gtags
+
build:
$(MAKE) -C src
doxygen: doc_inner
@$(DOXYGEN)
-gtags:
+gtags: clean_gtags
@$(GTAGS)
-htags: doc_inner gtags
- @rm -rf $</htags
- @$(HTAGS) $(HTAGSFLAG) $</
+htags: doc_inner
+ @$(MAKE) clean_htags
+ @$(MAKE) gtags
+ @$(HTAGS) $(HTAGSFLAG) $<
@$(MV) $</HTML $</htags
doc_inner:
@$(MKDIR) $@
-clean: clean_cmd clean_src clean_gtags clean_systemtest clean_unittest clean_doc_inner clean_doc
+clean: clean_cmd clean_src clean_gtags clean_systemtest clean_unittest clean_doc clean_doc_inner
clean_cmd:
@rm -f casl2 comet2 dumpword
-clean_gtags:
- @rm -f GPATH GRTAGS GSYMS GTAGS
-
clean_src:
@$(MAKE) -sC src clean
+clean_gtags:
+ @rm -f GPATH GRTAGS GSYMS GTAGS
+
clean_systemtest:
@$(MAKE) -sC test/system/casl2 clean
@$(MAKE) -sC test/system/comet2 clean
clean_unittest:
@$(MAKE) -sC test/unit clean
+clean_doc:
+ @$(MAKE) -sC doc clean
+
clean_doc_inner:
@rm -rf doc_inner
-clean_doc:
- @$(MAKE) -sC doc clean
+clean_htags:
+ @rm -rf doc_inner/htags
+
+clean_doxygen:
+ @rm -rf doc_inner/doxygen