X-Git-Url: http://j8takagi.net/cgi-bin/gitweb.cgi?a=blobdiff_plain;f=Makefile;h=80fe0ca20bdb8adf9a255378835fdf0704d04648;hb=64e6c84903cda33a9069d269a4c0d43a0a80ac0c;hp=6e145d7ce28e99c040c8462e10ddc5142d4374e8;hpb=8b76a2371ab7fc325f11b9164a73e899f98072f0;p=YACASL2.git diff --git a/Makefile b/Makefile index 6e145d7..80fe0ca 100644 --- a/Makefile +++ b/Makefile @@ -1,27 +1,27 @@ .PHONY: all build gtags check doc info html doc-inner install uninstall install-info uninstall-info install-casl2lib uninstall-casl2lib version clean clean-src clean-gtags clean-test clean-doc clean-doc-inner -GTAGS ?= gtags -RMF ?= rm -f -WHICH ?= which -ECHO ?= echo -INSTALL ?= install -SED ?= sed +GTAGS := gtags +RMF := rm -f +WHICH := which +ECHO := echo +INSTALL := install +SED := sed +CAT := cat prefix ?= ~ bindir ?= $(prefix)/bin -casl2libdir ?= $(prefix)/yacasl2/casl2lib VERSIONFILES = include/package.h test/system/casl2/opt_v/0.txt test/system/comet2/opt_v/0.txt test/system/dumpword/opt_v/0.txt -all: build info html gtags +all: build docall gtags -build: version +build: $(MAKE) -C src all gtags: @$(WHICH) $(GTAGS) >/dev/null && $(GTAGS) || $(ECHO) "$(GTAGS): not found" -docall: doc +docall: $(MAKE) -C doc all info: @@ -55,10 +55,11 @@ install-casl2lib: uninstall-casl2lib: @$(MAKE) -C as/casl2lib uninstall-casl2lib -version: $(VERSIONFILES) +version: VERSION $(VERSIONFILES) + @$(ECHO) "YACASL2 Version:" `$(CAT) VERSION` -$(VERSIONFILES): - for f in $(VERSIONFILES); do $(SED) -e "s/@@VERSION@@/`cat VERSION`/g" $$f.version >$$f; done +$(VERSIONFILES): VERSION + $(SED) -e "s/@@VERSION@@/`cat VERSION`/g" $@.version >$@ clean: clean-src clean-gtags clean-doc clean-doc-inner clean-version