VirtualBox

source: kBuild/trunk/dist/debian/rules@ 2253

Last change on this file since 2253 was 2250, checked in by bird, 16 years ago

Imported debian package from http://bollin.googlecode.com/svn/kbuild/trunk/debian for testing and assisting the package maintainers.

  • Property svn:executable set to *
File size: 1.2 KB
Line 
1#!/usr/bin/make -f
2
3include /usr/share/cdbs/1/rules/debhelper.mk
4include /usr/share/cdbs/1/rules/patchsys-quilt.mk
5
6YACC := YACC=/usr/bin/byacc
7BOOTSTRAP := ASH=/bin/bash ECHO=/bin/echo MKDIR=/bin/mkdir CP=/bin/cp \
8 RM=/bin/rm INSTALL=/usr/bin/install $(YACC)
9SVNROOT := http://svn.netlabs.org/repos/kbuild/trunk
10REVISION := $(shell echo $(DEB_UPSTREAM_VERSION) | sed -e's,.*svn,,')
11
12makebuilddir:: SvnInfo.kmk
13SvnInfo.kmk:
14 echo "KBUILD_SVN_URL := $(SVNROOT)" > $@
15 echo "KBUILD_SVN_REV := $(REVISION)" >> $@
16
17build/kbuild:: debian/stamp-build
18debian/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
27install/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
31clean::
32 -kBuild/env.sh kmk uninstall
33 $(RM) -r debian/stamp-* debian/kmk.1 out kBuild/bin/*/* SvnInfo.kmk
34
35
36get-orig-info:
37 svn info $(SVNROOT)
38
39get-orig-source:
40 sh debian/orig-tar.sh $(SVNROOT) $(DEB_UPSTREAM_VERSION) $(REVISION)
41
Note: See TracBrowser for help on using the repository browser.

© 2025 Oracle Support Privacy / Do Not Sell My Info Terms of Use Trademark Policy Automated Access Etiquette