summary | shortlog | log | commit | commitdiff | tree
raw | patch | inline | side by side (parent: 958bfe4)
raw | patch | inline | side by side (parent: 958bfe4)
author | Sebastian Harl <sh@tokkee.org> | |
Wed, 8 Feb 2012 18:28:26 +0000 (19:28 +0100) | ||
committer | Sebastian Harl <sh@tokkee.org> | |
Wed, 8 Feb 2012 18:28:26 +0000 (19:28 +0100) |
… and let the manpage depend on that as well.
Makefile.am | patch | blob | history | |
doc/Makefile.am | patch | blob | history | |
src/Makefile.am | patch | blob | history |
diff --git a/Makefile.am b/Makefile.am
index 9baf3dabd11cf10887911c2408337a89636b0c03..76a10167110337ae3d8bc6bc14fccf5f39df88ba 100644 (file)
--- a/Makefile.am
+++ b/Makefile.am
EXTRA_DIST = autogen.sh version-gen.sh
+version: FORCE
+ @# As a side-effect, this updates version.
+ @echo Building $(PACKAGE_NAME) version $$( cd .. && ./version-gen.sh )
+
diff --git a/doc/Makefile.am b/doc/Makefile.am
index 70a76cfc6104ea3cf4006aff7bee4812536d40f1..c07bab1f9f6b7a4c59811f7bd87bf0ada1cb08c1 100644 (file)
--- a/doc/Makefile.am
+++ b/doc/Makefile.am
man_MANS = fb.1
-fb.1: fb.txt
+fb.1: fb.txt ../version
.txt.1:
a2x -d manpage -f manpage -apackage_version=$(PACKAGE_VERSION) $<
diff --git a/src/Makefile.am b/src/Makefile.am
index 4787460c94a618241a765019907c7dca76d8883a..86e78ee586f511a7c64fb41cbe161ca3712f117f 100644 (file)
--- a/src/Makefile.am
+++ b/src/Makefile.am
fb_CFLAGS = $(AM_CFLAGS) -DBUILD_DATE="\"$$( date --utc '+%F %T' ) (UTC)\""
fb_LDADD = libfoobar.la
-../version: FORCE
- @# As a side-effect, this updates ../version.
- @echo Building $(PACKAGE_NAME) version $$( cd .. && ./version-gen.sh )
-
fb_features.h: fb_features.h.in ../version
source ../version; sed \
-e "s/@FB_VERSION_MAJOR@/$$VERSION_MAJOR/g" \