From dadd859730acb2e97c0b34a84a3254b7dabb5b47 Mon Sep 17 00:00:00 2001 From: Erwan Jahier <jahier@imag.fr> Date: Wed, 20 Jan 2010 09:20:12 +0100 Subject: [PATCH] Makefile enhancements. --- release-lv6/Makefile | 15 +++++++++------ 1 file changed, 9 insertions(+), 6 deletions(-) diff --git a/release-lv6/Makefile b/release-lv6/Makefile index a30a0391..615bafe9 100644 --- a/release-lv6/Makefile +++ b/release-lv6/Makefile @@ -7,10 +7,10 @@ LUS2LIC=$(LUS2LICDIR)/src/lus2lic VERSION=R0.$(shell $(LUS2LIC) -version | cut -d "." -f 2) RELNAME_PREFIX=lv6-alpha-$(VERSION) -RELNAME=$(RELNAME_PREFIX)$(shell date +%d-%m-%y)-$(shell uname) +RELNAME=$(RELNAME_PREFIX)-$(shell date +%d-%m-%y)-$(shell uname) -all: dir doc lus2lic test_files +release: dir doc lus2lic test_files dir: rm -rf $(RELNAME) || true @@ -46,9 +46,12 @@ www: $(RELNAME).tgz verimag: cp $(RELNAME).tgz /usr/local/tools/lustre-v6 - cd /usr/local/tools/lustre-v6 - tar xvfz $(RELNAME).tgz - echo "Changer le lien symbolique /usr/local/tools/lustre-v6/current ?" + cd /usr/local/tools/lustre-v6 ; tar xvfz $(RELNAME).tgz + rm /usr/local/tools/lustre-v6/current + ln -s /usr/local/tools/lustre-v6/$(RELNAME) /usr/local/tools/lustre-v6/current + clean: - rm -rf $(RELNAME_PREFIX)*-* \ No newline at end of file + rm -rf $(RELNAME_PREFIX)*-* + +all: release \ No newline at end of file -- GitLab