Changeset 23802 for trunk/ppStats/src/Makefile.am
- Timestamp:
- Apr 9, 2009, 10:43:27 PM (17 years ago)
- Location:
- trunk/ppStats/src
- Files:
-
- 2 edited
-
. (modified) (1 prop)
-
Makefile.am (modified) (1 diff)
Legend:
- Unmodified
- Added
- Removed
-
trunk/ppStats/src
- Property svn:ignore
-
old new 10 10 config.h.in 11 11 stamp-h1 12 ppStatsVersionDefinitions.h
-
- Property svn:ignore
-
trunk/ppStats/src/Makefile.am
r23790 r23802 1 1 lib_LTLIBRARIES = libppStats.la 2 2 3 if HAVE_SVNVERSION 4 PPSTATS_VERSION=`$(SVNVERSION) ../..` 5 else 6 PPSTATS_VERSION="UNKNOWN" 7 endif 8 9 if HAVE_SVN 10 PPSTATS_BRANCH=`$(SVN) info ../.. | $(SED) -n -e '/URL:/ h' -e '/Repository Root:/ { x; H; x; s|Repository Root: \(.*\)\nURL: \1\(.*\)|\2| ; s|^/|| ; s|/[a-zA-Z]*/src.*|| ; p }'` 11 PPSTATS_SOURCE=`$(SVN) info | $(SED) -n -e 's/Repository UUID: // p'` 12 else 13 PPSTATS_BRANCH="UNKNOWN" 14 PPSTATS_SOURCE="UNKNOWN" 15 endif 16 3 17 # Force recompilation of ppStatsVersion.c, since it gets the version information 4 ppStatsVersion.c: FORCE 5 touch ppStatsVersion.c 18 ppStatsVersion.c: ppStatsVersionDefinitions.h 19 ppStatsVersionDefinitions.h: ppStatsVersionDefinitions.h.in FORCE 20 -$(RM) ppStatsVersionDefinitions.h 21 $(SED) -e "s|@PPSTATS_VERSION@|\"$(PPSTATS_VERSION)\"|" -e "s|@PPSTATS_BRANCH@|\"$(PPSTATS_BRANCH)\"|" -e "s|@PPSTATS_SOURCE@|\"$(PPSTATS_SOURCE)\"|" ppStatsVersionDefinitions.h.in > ppStatsVersionDefinitions.h 6 22 FORCE: ; 7 23 8 libppStats_la_CFLAGS = $(PPSTATS_CFLAGS) $(PSMODULE_CFLAGS) $(PSLIB_CFLAGS) -DPPSTATS_VERSION=$(PPSTATS_VERSION) -DPPSTATS_BRANCH=$(PPSTATS_BRANCH) -DPPSTATS_SOURCE=$(PPSTATS_SOURCE)24 libppStats_la_CFLAGS = $(PPSTATS_CFLAGS) $(PSMODULE_CFLAGS) $(PSLIB_CFLAGS) 9 25 libppStats_la_LDFLAGS = $(PPSTATS_LIBS) $(PSMODULE_LIBS) $(PSLIB_LIBS) 10 26
Note:
See TracChangeset
for help on using the changeset viewer.
