From 28ba87e33da07cf5287681c3ee865b60c108a7b0 Mon Sep 17 00:00:00 2001 From: j8takagi Date: Wed, 10 Jun 2026 16:39:40 +0900 Subject: [PATCH] =?utf8?q?doc/inner/Makefile=E3=81=AEgnu=5Fglobal=E3=81=A8?= =?utf8?q?doxygen=E3=82=92=E3=80=81=E3=82=BF=E3=82=A4=E3=83=A0=E3=82=B9?= =?utf8?q?=E3=82=BF=E3=83=B3=E3=83=97=E6=96=B9=E5=BC=8F=E3=81=AB?= MIME-Version: 1.0 Content-Type: text/plain; charset=utf8 Content-Transfer-Encoding: 8bit 関連して.gitignoreに*___*を追加 --- .gitignore | 1 + VERSION | 2 +- doc_inner/Makefile | 62 ++++++++++++++++++++++------------------------ 3 files changed, 32 insertions(+), 33 deletions(-) diff --git a/.gitignore b/.gitignore index 0b66677..f719b3a 100644 --- a/.gitignore +++ b/.gitignore @@ -19,3 +19,4 @@ core *.bak fontconfig *.log.core* +*___* diff --git a/VERSION b/VERSION index 4f27249..02f1fcc 100644 --- a/VERSION +++ b/VERSION @@ -1 +1 @@ -v0.5p53 +v0.5p54 diff --git a/doc_inner/Makefile b/doc_inner/Makefile index 5e38a58..22dc1be 100644 --- a/doc_inner/Makefile +++ b/doc_inner/Makefile @@ -1,23 +1,19 @@ -.PHONY: all clean doxyfile-update doxygen-clean gnu_global-clean cmetrics-clean +.PHONY: all clean distclean doxygen-clean gnu_global-clean CD := cd -CMETRICS := cmetrics CP := cp DOXYGEN := doxygen ECHO := echo HTAGS := htags -INSTALL := install +LS := ls +MKDIR := mkdir MV := mv -RMR := rm -rf SED := sed WHICH := which -DOXYGEN_DIR := doxygen -DOXYSRCDIR := .. -GNU_GLOBAL_DIR := gnu_global -GNU_GLOBAL_SRCDIR := .. -CMETRICS_DIR := cmetrics -CMETRICS_SRCDIR := ../src +SRCDIR := .. +DOXYGENSTAMP := doxygen___stamp +GNUGLOBALSTAMP := gnu_global___stamp # chk_file_ext: 指定されたコマンドが実在する場合にターゲットを指定。 # 用例: $(call chk_cmd_ext,cmd,target) @@ -25,42 +21,44 @@ define chk_cmd_ext $(if $(strip $(shell $(WHICH) $1)),$2) endef -all: $(call chk_cmd_ext,$(DOXYGEN),$(DOXYGEN_DIR)) $(call chk_cmd_ext,$(HTAGS),$(GNU_GLOBAL_DIR)) $(call chk_cmd_ext $(CMETRICS),$(CMETRICS_DIR)) +all: $(call chk_cmd_ext,$(DOXYGEN),doxygen___stamp) $(call chk_cmd_ext,$(HTAGS),gnu_global___stamp) # doxygenのHTMLドキュメント作成先は、 # ../Doxyfileで設定された以下のディレクトリーの下のhtmlディレクトリー # OUTPUT_DIRECTORY = doc_inner -$(DOXYGEN_DIR): $(DOXYSRCDIR)/Doxyfile ../src ../include - $(INSTALL) -d $(DOXYGEN_DIR) - $(CD) $(DOXYSRCDIR) && $(DOXYGEN) +doxygen___stamp: $(SRCDIR)/src $(SRCDIR)/include $(SRCDIR)/Doxyfile | doxygen + $(CD) $(SRCDIR) && $(DOXYGEN) + $(LS) -laR doxygen >$@ -doxyfile-update: Doxyfile - $(DOXYGEN) -u $< +doxygen: + $(MKDIR) $@ -$(DOXYSRCDIR)/Doxyfile: doxyfile-update - @$(CP) -vf Doxyfile $(DOXYSRCDIR)/ +Doxyfile: + $(DOXYGEN) -u $@ + +$(SRCDIR)/Doxyfile: | Doxyfile + @$(CP) -vf Doxyfile $(SRCDIR)/ # htagsのHTMLドキュメント作成先は、 # 引数DIRで指定されたディレクトリーの下のHTMLディレクトリー -$(GNU_GLOBAL_DIR): ../src ../include - $(MAKE) -C $(GNU_GLOBAL_SRCDIR) gtags - $(CD) $(GNU_GLOBAL_SRCDIR) && $(HTAGS) -anos $(CURDIR) && $(RMR) $(CURDIR)/$@ && $(MV) $(CURDIR)/HTML $(CURDIR)/$@ +gnu_global___stamp: $(SRCDIR)/src $(SRCDIR)/include | gnu_global + $(MAKE) -C $(SRCDIR) gtags + $(CD) $(SRCDIR) && $(HTAGS) -anos $(CURDIR) + $(RM) -r gnu_global + $(MV) HTML gnu_global + $(LS) -laR gnu_global >$@ -$(CMETRICS_DIR): - $(INSTALL) -d $(CMETRICS_DIR) - $(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 +gnu_global: + $(MKDIR) $@ -clean: doxygen-clean gnu_global-clean cmetrics-clean +clean: + $(RM) *___stamp -distclean: clean +distclean: clean doxygen-clean gnu_global-clean doxygen-clean: - $(RMR) $(DOXYGEN_DIR) + $(RM) -r doxygen $(RM) ../Doxyfile gnu_global-clean: - $(RMR) $(GNU_GLOBAL_DIR) - -cmetrics-clean: - $(RMR) $(CMETRICS_DIR) + $(RM) -r gnu_global -- 2.47.3