X-Git-Url: http://j8takagi.net/cgi-bin/gitweb.cgi?a=blobdiff_plain;f=doc_inner%2FMakefile;h=5e38a58625bb47706187a01187398d4d063f4346;hb=HEAD;hp=7fb6b18dc57f835e0dacd6d972f0d5e7de388ad7;hpb=e41f2dc671c87d4f78c59056f1f55af566fcc2cb;p=YACASL2.git diff --git a/doc_inner/Makefile b/doc_inner/Makefile index 7fb6b18..5e38a58 100644 --- a/doc_inner/Makefile +++ b/doc_inner/Makefile @@ -1,4 +1,4 @@ -.PHONY: all clean doxygen-clean gnu_global-clean cmetrics-clean +.PHONY: all clean doxyfile-update doxygen-clean gnu_global-clean cmetrics-clean CD := cd CMETRICS := cmetrics @@ -34,22 +34,27 @@ $(DOXYGEN_DIR): $(DOXYSRCDIR)/Doxyfile ../src ../include $(INSTALL) -d $(DOXYGEN_DIR) $(CD) $(DOXYSRCDIR) && $(DOXYGEN) -$(DOXYSRCDIR)/Doxyfile: - $(CP) -f Doxyfile $(DOXYSRCDIR)/ +doxyfile-update: Doxyfile + $(DOXYGEN) -u $< + +$(DOXYSRCDIR)/Doxyfile: doxyfile-update + @$(CP) -vf Doxyfile $(DOXYSRCDIR)/ # htagsのHTMLドキュメント作成先は、 # 引数DIRで指定されたディレクトリーの下のHTMLディレクトリー $(GNU_GLOBAL_DIR): ../src ../include $(MAKE) -C $(GNU_GLOBAL_SRCDIR) gtags - $(CD) $(GNU_GLOBAL_SRCDIR) && $(HTAGS) -anosx $(CURDIR) && $(RMR) $(CURDIR)/$@ && $(MV) $(CURDIR)/HTML $(CURDIR)/$@ + $(CD) $(GNU_GLOBAL_SRCDIR) && $(HTAGS) -anos $(CURDIR) && $(RMR) $(CURDIR)/$@ && $(MV) $(CURDIR)/HTML $(CURDIR)/$@ $(CMETRICS_DIR): $(INSTALL) -d $(CMETRICS_DIR) - $(CMETRICS) $(CMETRICS_SRCDIR) | $(SED) -e '1s/ \{2,\}/\t/g' -e '2,$$s/ \{1,\}/\t/g' >$(CMETRICS_DIR)/files.tsv - $(CMETRICS) -f $(CMETRICS_SRCDIR) | $(SED) -e '1s/ \{2,\}/\t/g' -e '2,$$s/ \{1,\}/\t/g' >$(CMETRICS_DIR)/functions.tsv + $(CMETRICS) $(CMETRICS_SRCDIR) | $(SED) -e '1s/ \{2,\}/ /g' -e '2,$$s/ \{1,\}/ /g' >$(CMETRICS_DIR)/files.tsv + $(CMETRICS) -f $(CMETRICS_SRCDIR) | $(SED) -e '1s/ \{2,\}/ /g' -e '2,$$s/ \{1,\}/ /g' >$(CMETRICS_DIR)/functions.tsv clean: doxygen-clean gnu_global-clean cmetrics-clean +distclean: clean + doxygen-clean: $(RMR) $(DOXYGEN_DIR) $(RM) ../Doxyfile