File: sipXpkgtop.mak

package info (click to toggle)
sipxtapi 3.3.0~test17-1
  • links: PTS, VCS
  • area: main
  • in suites: jessie, jessie-kfreebsd
  • size: 23,012 kB
  • ctags: 25,370
  • sloc: cpp: 252,045; ansic: 11,911; sh: 11,657; makefile: 2,449; java: 2,264; xml: 225; perl: 161
file content (40 lines) | stat: -rw-r--r-- 1,456 bytes parent folder | download | duplicates (5)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
## Makefile components common to the top level of the package source tree

## BUILDSTAMP records the subversion revision, date/time, and host of the build
##   it also creates the cpp file config/sipX-buildstamp.cpp with the same information.
all: BUILDSTAMP

## The SVN-VERSION file is created to record the version 
##  in the distribution tarball; it is not used in a subversion working copy
##  (see the BUILDSTAMP rule below).
SVN-VERSION:
	svnversion @top_srcdir@ > SVN-VERSION

.PHONY: BUILDSTAMP
BUILDSTAMP:
	  if test -d @top_srcdir@/.svn \
	  ;then \
	    sipxSvnVersion=`svnversion @top_srcdir@` \
	  ;elif test -f @top_srcdir@/SVN-VERSION \
	  ;then \
	    sipxSvnVersion=`cat @top_srcdir@/SVN-VERSION` \
	  ;fi \
	  ;if test -z "$${sipxSvnVersion}" -o "export" = "$${sipxSvnVersion}" \
	  ;then \
	    sipxSvnVersion="SVN-UNKNOWN" \
	  ;fi \
	  ;sipxBuildTime=`date -u --iso-8601=seconds | sed 's/+0000//'` \
	  ;sipxBuildHost=`hostname --short` \
	  ;SIPX_BUILDSTAMP="r$${sipxSvnVersion} $${sipxBuildTime} $${sipxBuildHost}" \
	  ;echo "$${SIPX_BUILDSTAMP}" > BUILDSTAMP \
	  ;${LocalizeSipXconfig} \
		-e "s/@SIPX_BUILDSTAMP\@/$${SIPX_BUILDSTAMP}/" \
		-e "s/sipx/SipX/" \
	    $(srcdir)/config/sipX-buildstamp.cpp.in \
	  > config/@PACKAGE@-buildstamp.cpp \
	  ;${LocalizeSipXconfig} \
		-e "s/@SIPX_BUILDSTAMP\@/$${SIPX_BUILDSTAMP}/" \
		-e "s/sipx/SipX/" \
	    $(srcdir)/config/sipX-buildstamp.h.in \
	  > config/@PACKAGE@-buildstamp.h