forked from silnrsi/grcompiler
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathMakefile.am
49 lines (38 loc) · 1.59 KB
/
Makefile.am
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
SUBDIRS = doc preprocessor compiler test
EXTRA_DIST = license makefile.mak
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