Whamcloud - gitweb
Allow automatic specification of the RPM locations by check-build.
authorgord-fig <gord-fig>
Mon, 2 Sep 2002 16:43:11 +0000 (16:43 +0000)
committergord-fig <gord-fig>
Mon, 2 Sep 2002 16:43:11 +0000 (16:43 +0000)
lustre/doc/Makefile.am

index fe1ed0d..b3c4a50 100644 (file)
@@ -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)