diff options
author | levine <levine@ae88bc3d-4319-0410-8dbf-d08b4c9d3795> | 1997-01-22 21:48:50 +0000 |
---|---|---|
committer | levine <levine@ae88bc3d-4319-0410-8dbf-d08b4c9d3795> | 1997-01-22 21:48:50 +0000 |
commit | 9d1421b67b60da2963472a493685ee9632617664 (patch) | |
tree | 4a55a04145a83b02f54abc1b31b7adb94e6b8317 /Makefile | |
parent | b40f713dee5a7760dbbcf3df7ef8434ecda15f9e (diff) | |
download | ATCD-9d1421b67b60da2963472a493685ee9632617664.tar.gz |
modified top-level Makefile to add a timestamp to the VERSION file if creating a release in /project/adaptive/ACE_wrappers
Diffstat (limited to 'Makefile')
-rw-r--r-- | Makefile | 17 |
1 files changed, 15 insertions, 2 deletions
@@ -75,8 +75,21 @@ RELEASE_FILES = ACE_wrappers/ACE-categories \ ACE_wrappers/performance-tests \ ACE_wrappers/tests +ifeq ($(PWD),) + PWD := $(shell pwd) +endif + +#### If creating the "official" ACE release, update the timestamp in VERSION. +#### Detect if we are doing that by looking at the PWD. +#### To disable this feature, add "TIMESTAMP=" to the make command line. +ifeq ($(PWD),/project/adaptive/ACE_wrappers) + TIMESTAMP = perl -pi -e 'chop ($$date=`date`); s/(, released ).*/$$1$$date./' VERSION; cvs commit -m'make release: updated timestamp' VERSION; +else + TIMESTAMP = +endif + cleanrelease: - (make realclean; cd ..; /bin/rm -f ACE.tar.gz; tar cvf ACE.tar $(RELEASE_FILES); gzip -9 ACE.tar; chmod a+r ACE.tar.gz) + ($(TIMESTAMP)make realclean; cd ..; /bin/rm -f ACE.tar.gz; tar cvf ACE.tar $(RELEASE_FILES); gzip -9 ACE.tar; chmod a+r ACE.tar.gz) release: - (cd ..; /bin/rm -f ACE.tar.gz; tar cvf ACE.tar $(RELEASE_FILES); gzip -9 ACE.tar; chmod a+r ACE.tar.gz) + ($(TIMESTAMP)cd ..; /bin/rm -f ACE.tar.gz; tar cvf ACE.tar $(RELEASE_FILES); gzip -9 ACE.tar; chmod a+r ACE.tar.gz) |