From: gord-fig Date: Mon, 2 Sep 2002 16:43:11 +0000 (+0000) Subject: Allow automatic specification of the RPM locations by check-build. X-Git-Tag: 0.5.6~42 X-Git-Url: https://git.whamcloud.com/gitweb?a=commitdiff_plain;h=2055da72b27a7d222c640a3a935809819635bf16;p=fs%2Flustre-release.git Allow automatic specification of the RPM locations by check-build. --- diff --git a/lustre/doc/Makefile.am b/lustre/doc/Makefile.am index fe1ed0d..b3c4a50 100644 --- a/lustre/doc/Makefile.am +++ b/lustre/doc/Makefile.am @@ -29,10 +29,15 @@ EXTRA_DIST = chbar.sh postbar $(DOCS) $(IMAGES) $(LYXFILES) lustre.bib all: $(DOCS) +# These variables are set by lbuild/check-build. +RPMRELEASE ?= RELEASE +KERNTYPE ?= chaos +KERNRPM ?= kernel-2.4.18lustre13-RELEASE.i386.rpm + # update date and version in document date := $(shell date +%x) tag := $(shell echo '$$Name: $$' | sed -e 's/^\$$Na''me: *\$$$$/HEAD/; s/^\$$Na''me: \(.*\) \$$$$/\1/') -addversion = sed -e 's|@T''AG@|$(tag)|g; s|@VER''SION@|$(VERSION)|g; s|@DA''TE@|$(date)|g' +addversion = sed -e 's|@T''AG@|$(tag)|g; s|@VER''SION@|$(VERSION)|g; s|@DA''TE@|$(date)|g; s|@RPM''RELEASE@|$(RPMRELEASE)|g; s|@KERN''TYPE@|$(KERNTYPE)|g; s|@KERN''RPM@|$(KERNRPM)|g' # Regenerate when the $(VERSION) or $Name: $ changes. .INTERMEDIATE: $(GENERATED)