Line | |
---|
1 | #!/usr/bin/make -f
|
---|
2 |
|
---|
3 | include /usr/share/cdbs/1/rules/debhelper.mk
|
---|
4 | include /usr/share/cdbs/1/rules/patchsys-quilt.mk
|
---|
5 |
|
---|
6 | YACC := YACC=/usr/bin/byacc
|
---|
7 | BOOTSTRAP := ASH=/bin/bash ECHO=/bin/echo MKDIR=/bin/mkdir CP=/bin/cp \
|
---|
8 | RM=/bin/rm INSTALL=/usr/bin/install $(YACC)
|
---|
9 | SVNROOT := http://svn.netlabs.org/repos/kbuild/trunk
|
---|
10 | REVISION := $(shell echo $(DEB_UPSTREAM_VERSION) | sed -e's,.*svn,,')
|
---|
11 |
|
---|
12 | makebuilddir:: SvnInfo.kmk
|
---|
13 | SvnInfo.kmk:
|
---|
14 | echo "KBUILD_SVN_URL := $(SVNROOT)" > $@
|
---|
15 | echo "KBUILD_SVN_REV := $(REVISION)" >> $@
|
---|
16 |
|
---|
17 | build/kbuild:: debian/stamp-build
|
---|
18 | debian/stamp-build:
|
---|
19 | $(info DEBUG: macros defined by gcc:)
|
---|
20 | -gcc -dM -E - < /dev/null
|
---|
21 | kBuild/env.sh --full make -f bootstrap.gmk SRCDIR=`pwd` $(BOOTSTRAP)
|
---|
22 | kBuild/env.sh kmk rebuild PATH_INS=`pwd` $(YACC)
|
---|
23 | pod2man -c 'kBuild for Debian GNU/Linux' \
|
---|
24 | -r kBuild-$(DEB_UPSTREAM_VERSION) debian/kmk.pod > debian/kmk.1
|
---|
25 | touch $@
|
---|
26 |
|
---|
27 | install/kbuild::
|
---|
28 | kBuild/env.sh kmk install NIX_INSTALL_DIR=/usr LDFLAGS=-Wl,--as-needed
|
---|
29 | cd out/*.*/release/usr/share/kBuild && chmod a-x *.kmk */*.kmk
|
---|
30 |
|
---|
31 | clean::
|
---|
32 | -kBuild/env.sh kmk uninstall
|
---|
33 | $(RM) -r debian/stamp-* debian/kmk.1 out kBuild/bin/*/* SvnInfo.kmk
|
---|
34 |
|
---|
35 |
|
---|
36 | get-orig-info:
|
---|
37 | svn info $(SVNROOT)
|
---|
38 |
|
---|
39 | get-orig-source:
|
---|
40 | sh debian/orig-tar.sh $(SVNROOT) $(DEB_UPSTREAM_VERSION) $(REVISION)
|
---|
41 |
|
---|
Note:
See
TracBrowser
for help on using the repository browser.