File: Makefile.am

package info (click to toggle)
grcompiler 5.2.1-1
  • links: PTS, VCS
  • area: main
  • in suites: forky, trixie
  • size: 24,020 kB
  • sloc: cpp: 48,200; ansic: 7,670; sh: 4,427; makefile: 197; xml: 190; perl: 127; sed: 21
file content (51 lines) | stat: -rw-r--r-- 1,650 bytes parent folder | download | duplicates (4)
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
41
42
43
44
45
46
47
48
49
50
51
SUBDIRS = doc preprocessor compiler test

EXTRA_DIST = license makefile.mak

README: README.md

dist-hook:
	find $(distdir) -name ".svn" | xargs rm -rf

VC_VERSION = 5.1
D_VERSION = `hg identify -n || svnversion ${top_srcdir}|sed -e "s/[0-9]*\://g"`
DEB_VERSION = $(VC_VERSION)+0$(D_VERSION)svn
DEBPACKAGE = grcompiler-$(DEB_VERSION)
RELPACKAGE = grcompiler-${VC_VERSION}
ORIGTAR = grcompiler_$(DEB_VERSION).orig.tar.gz

DISTRIB_CODENAME ?= ${REL_CODENAME}

showcodename:
	echo "Codename: ${DISTRIB_CODENAME}"

deb-base: dist
	rm -fr ${DEBPACKAGE}
	mkdir -p ${DEBPACKAGE}
	cp ${PACKAGE}-${VERSION}.tar.gz $(DEBPACKAGE)
	tar cfz $(ORIGTAR) $(DEBPACKAGE)
	cp -a ${top_srcdir}/debian $(DEBPACKAGE)
	cd ${DEBPACKAGE} && find . -name .svn | xargs rm -rf

deb: deb-base
	dch -D ${DISTRIB_CODENAME} -v ${DEB_VERSION}-1 -m -c${DEBPACKAGE}/debian/changelog "This is build direct from svn"
	cd ${DEBPACKAGE} && pdebuild

deb-binary-only: deb-base
	dch -D ${DISTRIB_CODENAME} -v ${DEB_VERSION}-1 -m -c${DEBPACKAGE}/debian/changelog "This is build direct from svn"
	cd ${DEBPACKAGE} && pdebuild --debbuildopts -i --debbuildopts -b

deb-release: dist
	rm -fr ${RELPACKAGE}
	mkdir -p ${RELPACKAGE}
	cp ${PACKAGE}-${VERSION}.tar.gz $(RELPACKAGE)
	tar cfz $(ORIGTAR) $(RELPACKAGE)
	cp -a ${top_srcdir}/debian $(RELPACKAGE)
	cd ${RELPACKAGE} && find . -name .svn | xargs rm -rf
	dch -D ${DISTRIB_CODENAME} -v ${VC_VERSION}-1 -c${RELPACKAGE}/debian/changelog
	cd ${RELPACKAGE} && pdebuild

deb-local: deb-base
	dch -D ${DISTRIB_CODENAME} -v ${DEB_VERSION}-1 -m -c${DEBPACKAGE}/debian/changelog "This is a debuild direct from svn"
	cd ${DEBPACKAGE} && debuild -us -uc