<!DOCTYPE html PUBLIC '-//W3C//DTD XHTML 1.0 Transitional//EN' 'http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd'> <html xmlns='http://www.w3.org/1999/xhtml'> <head> <title>doc_inner/Makefile</title> <meta name='robots' content='noindex,nofollow' /> <meta name='generator' content='GLOBAL-6.6.5' /> <meta http-equiv='Content-Style-Type' content='text/css' /> <link rel='stylesheet' type='text/css' href='../style.css' /> </head> <body> <a id='TOP' name='TOP'></a><h2 class='header'><a href='../mains.html'>root</a>/<a href='../files/2927.html'>doc_inner</a>/Makefile</h2> <em class='comment'>/* [<][>][^][v][top]<a href='#BOTTOM'>[bottom]</a><a href='../mains.html'>[index]</a><a href='../help.html'>[help]</a> */</em> <hr /> <pre> <a id='L1' name='L1'></a>.PHONY: all clean doxyfile-update doxygen-clean gnu_global-clean cmetrics-clean <a id='L2' name='L2'></a> <a id='L3' name='L3'></a>CD := cd <a id='L4' name='L4'></a>CMETRICS := cmetrics <a id='L5' name='L5'></a>CP := cp <a id='L6' name='L6'></a>DOXYGEN := doxygen <a id='L7' name='L7'></a>ECHO := echo <a id='L8' name='L8'></a>HTAGS := htags <a id='L9' name='L9'></a>INSTALL := install <a id='L10' name='L10'></a>MV := mv <a id='L11' name='L11'></a>RMR := rm -rf <a id='L12' name='L12'></a>SED := sed <a id='L13' name='L13'></a>WHICH := which <a id='L14' name='L14'></a> <a id='L15' name='L15'></a>DOXYGEN_DIR := doxygen <a id='L16' name='L16'></a>DOXYSRCDIR := .. <a id='L17' name='L17'></a>GNU_GLOBAL_DIR := gnu_global <a id='L18' name='L18'></a>GNU_GLOBAL_SRCDIR := .. <a id='L19' name='L19'></a>CMETRICS_DIR := cmetrics <a id='L20' name='L20'></a>CMETRICS_SRCDIR := ../src <a id='L21' name='L21'></a> <a id='L22' name='L22'></a># chk_file_ext: 指定されたコマンドが実在する場合にターゲットを指定。 <a id='L23' name='L23'></a># 用例: $(call chk_cmd_ext,cmd,target) <a id='L24' name='L24'></a>define chk_cmd_ext <a id='L25' name='L25'></a> $(if $(strip $(shell $(WHICH) $1)),$2) <a id='L26' name='L26'></a>endef <a id='L27' name='L27'></a> <a id='L28' name='L28'></a>all: $(call chk_cmd_ext,$(DOXYGEN),$(DOXYGEN_DIR)) $(call chk_cmd_ext,$(HTAGS),$(GNU_GLOBAL_DIR)) $(call chk_cmd_ext $(CMETRICS),$(CMETRICS_DIR)) <a id='L29' name='L29'></a> <a id='L30' name='L30'></a># doxygenのHTMLドキュメント作成先は、 <a id='L31' name='L31'></a># ../Doxyfileで設定された以下のディレクトリーの下のhtmlディレクトリー <a id='L32' name='L32'></a># OUTPUT_DIRECTORY = doc_inner <a id='L33' name='L33'></a>$(DOXYGEN_DIR): $(DOXYSRCDIR)/Doxyfile ../src ../include <a id='L34' name='L34'></a> $(INSTALL) -d $(DOXYGEN_DIR) <a id='L35' name='L35'></a> $(CD) $(DOXYSRCDIR) && $(DOXYGEN) <a id='L36' name='L36'></a> <a id='L37' name='L37'></a>doxyfile-update: Doxyfile <a id='L38' name='L38'></a> $(DOXYGEN) -u $< <a id='L39' name='L39'></a> <a id='L40' name='L40'></a>$(DOXYSRCDIR)/Doxyfile: doxyfile-update <a id='L41' name='L41'></a> @$(CP) -vf Doxyfile $(DOXYSRCDIR)/ <a id='L42' name='L42'></a> <a id='L43' name='L43'></a># htagsのHTMLドキュメント作成先は、 <a id='L44' name='L44'></a># 引数DIRで指定されたディレクトリーの下のHTMLディレクトリー <a id='L45' name='L45'></a>$(GNU_GLOBAL_DIR): ../src ../include <a id='L46' name='L46'></a> $(MAKE) -C $(GNU_GLOBAL_SRCDIR) gtags <a id='L47' name='L47'></a> $(CD) $(GNU_GLOBAL_SRCDIR) && $(HTAGS) -anos $(CURDIR) && $(RMR) $(CURDIR)/$@ && $(MV) $(CURDIR)/HTML $(CURDIR)/$@ <a id='L48' name='L48'></a> <a id='L49' name='L49'></a>$(CMETRICS_DIR): <a id='L50' name='L50'></a> $(INSTALL) -d $(CMETRICS_DIR) <a id='L51' name='L51'></a> $(CMETRICS) $(CMETRICS_SRCDIR) | $(SED) -e '1s/ \{2,\}/ /g' -e '2,$$s/ \{1,\}/ /g' >$(CMETRICS_DIR)/files.tsv <a id='L52' name='L52'></a> $(CMETRICS) -f $(CMETRICS_SRCDIR) | $(SED) -e '1s/ \{2,\}/ /g' -e '2,$$s/ \{1,\}/ /g' >$(CMETRICS_DIR)/functions.tsv <a id='L53' name='L53'></a> <a id='L54' name='L54'></a>clean: doxygen-clean gnu_global-clean cmetrics-clean <a id='L55' name='L55'></a> <a id='L56' name='L56'></a>distclean: clean <a id='L57' name='L57'></a> <a id='L58' name='L58'></a>doxygen-clean: <a id='L59' name='L59'></a> $(RMR) $(DOXYGEN_DIR) <a id='L60' name='L60'></a> $(RM) ../Doxyfile <a id='L61' name='L61'></a> <a id='L62' name='L62'></a>gnu_global-clean: <a id='L63' name='L63'></a> $(RMR) $(GNU_GLOBAL_DIR) <a id='L64' name='L64'></a> <a id='L65' name='L65'></a>cmetrics-clean: <a id='L66' name='L66'></a> $(RMR) $(CMETRICS_DIR) </pre> <hr /> <a id='BOTTOM' name='BOTTOM'></a> <em class='comment'>/* [<][>][^][v]<a href='#TOP'>[top]</a>[bottom]<a href='../mains.html'>[index]</a><a href='../help.html'>[help]</a> */</em> </body> </html>