diff --git a/Makefile.in b/Makefile.in index a43602d154c991343c4d9f1c6ae2890bcd527f48..078e3d1011c5d0212011bca66e8b71486f06e463 100644 --- a/Makefile.in +++ b/Makefile.in @@ -21,17 +21,21 @@ PHONY: config byte opt clean superclean install tar version release BINARIES=acgc acgc.opt acg acg.opt -VERSION = $(shell date "+%Y-%m-%d") +VERSION_FILE = src/utils/version.ml +VERSION = $(shell date "+%Y%m%d-%M") RELEASE = acg-$(VERSION) -AR_EXCLUDE = +TAR_RELEASE =acg-$(TAR_VERSION) + prefix = @prefix@ exec_prefix = @exec_prefix@ -essai: - echo $(DATE) + +essai: TAR_VERSION=$(shell grep "^DEFINE" $(VERSION_FILE) | sed -e 's/DEFINE.* = "\(.*\)"/\1/') +essai: + echo "$(TAR_VERSION)" "$(TAR_RELEASE)" byte opt: $(MAKE) -C src $@ @@ -40,14 +44,14 @@ byte opt: all: byte opt clean: - if test "$@" = clean ; then $(MAKE) -C config $@ ; fi - $(MAKE) -C src $@ - rm -rf *.log *~ autom4te.cache + -if test "$@" = clean ; then $(MAKE) -C config $@ ; fi + -$(MAKE) -C src $@ + rm -rf *.log *~ autom4te.cache *.tar.gz find . -name "*~" -exec rm -f {} \; -for file in $(BINARIES); do rm $$file ; done superclean: clean - -find . -name "*.in" -print | sed -e 's/\(.*\)\.in/\1/' | xargs -n 1 rm + -find . -wholename "./*/*.in" -print | sed -e 's/\(.*\)\.in/\1/' | xargs -n 1 rm install: for file in $(BINARIES); do if test -x $$file ; then cp $$file @bindir@/. ; fi ; done @@ -63,14 +67,18 @@ config: configure configure: config/configure.ac cd $(