diff options
author | Felix Geyer <debfx-pkg@fobos.de> | 2011-08-21 10:56:17 +0200 |
---|---|---|
committer | Felix Geyer <debfx-pkg@fobos.de> | 2011-08-21 10:56:17 +0200 |
commit | 9f1a9fef41cbf7e918ee012cb2ade361c95ec620 (patch) | |
tree | 671ccc23ab484eeebd7d2379c4e63bf73401da3b /debian/rules | |
parent | e207f0533b0cea9cc8eea4e091d9e2c17c7664fa (diff) | |
download | kbuild-9f1a9fef41cbf7e918ee012cb2ade361c95ec620.tar.gz |
Convert package from cdbs to dh(1).
Diffstat (limited to 'debian/rules')
-rwxr-xr-x | debian/rules | 38 |
1 files changed, 19 insertions, 19 deletions
diff --git a/debian/rules b/debian/rules index dc9fa33..49655c7 100755 --- a/debian/rules +++ b/debian/rules @@ -1,42 +1,42 @@ #!/usr/bin/make -f -include /usr/share/cdbs/1/rules/debhelper.mk +UPSTREAM_VERSION := $(shell dpkg-parsechangelog | sed -n 's/^Version: *\([^-]\+\)-.\+/\1/p') YACC := YACC=/usr/bin/byacc BOOTSTRAP := ASH=/bin/bash ECHO=/bin/echo MKDIR=/bin/mkdir CP=/bin/cp \ RM=/bin/rm INSTALL=/usr/bin/install $(YACC) SVNROOT := http://svn.netlabs.org/repos/kbuild/trunk -REVISION := $(shell echo $(DEB_UPSTREAM_VERSION) | sed -e's,.*svn,,') +REVISION := $(shell echo $(UPSTREAM_VERSION) | sed -e's,.*svn,,') -makebuilddir:: SvnInfo.kmk -SvnInfo.kmk: - echo "KBUILD_SVN_URL := $(SVNROOT)" > $@ - echo "KBUILD_SVN_REV := $(REVISION)" >> $@ +%: + dh $@ -build/kbuild:: debian/stamp-build -debian/stamp-build: +override_dh_auto_configure: + echo "KBUILD_SVN_URL := $(SVNROOT)" > SvnInfo.kmk + echo "KBUILD_SVN_REV := $(REVISION)" >> SvnInfo.kmk + +override_dh_auto_build: $(info DEBUG: macros defined by gcc:) -gcc -dM -E - < /dev/null kBuild/env.sh --full make -f bootstrap.gmk SRCDIR=`pwd` $(BOOTSTRAP) kBuild/env.sh kmk rebuild PATH_INS=`pwd` $(YACC) - touch $@ -install/kbuild:: +override_dh_auto_install: kBuild/env.sh kmk install NIX_INSTALL_DIR=/usr LDFLAGS=-Wl,--as-needed cd out/*.*/release/usr/share/kBuild && chmod a-x *.kmk */*.kmk -clean:: +override_dh_auto_clean: -kBuild/env.sh kmk uninstall - $(RM) -r debian/stamp-* out kBuild/bin/*/* SvnInfo.kmk - ( cd src/kmk; $(RM) -f aclocal.m4 config.h.in configure Makefile.in ) - ( cd src/kmk/config; $(RM) -f compile config.guess config.sub depcomp install-sh Makefile.in missing ) - $(RM) -f src/kmk/glob/Makefile.in src/kmk/w32/Makefile.in - ( cd src/sed/config; $(RM) -f intdiv0.m4 intmax.m4 inttypes_h.m4 inttypes.m4 inttypes-pri.m4 isc-posix.m4 longdouble.m4 longlong.m4 mkinstalldirs nls.m4 po.m4 printf-posix.m4 signed.m4 size_max.m4 stdint_h.m4 uintmax_t.m4 ulonglong.m4 wchar_t.m4 wint_t.m4 xsize.m4 ) - ( cd src/sed/intl; $(RM) -f libgnuintl.h.in localcharset.h log.c printf-args.c printf-args.h printf.c printf-parse.c printf-parse.h relocatable.c relocatable.h vasnprintf.c vasnprintf.h vasnwprintf.h wprintf-parse.h xsize.h ) - ( cd src/sed/po; $(RM) -f Makevars.template remove-potcdate.sin ) + rm -rf debian/stamp-* out kBuild/bin/*/* SvnInfo.kmk + ( cd src/kmk; rm -f aclocal.m4 config.h.in configure Makefile.in ) + ( cd src/kmk/config; rm -f compile config.guess config.sub depcomp install-sh Makefile.in missing ) + rm -f src/kmk/glob/Makefile.in src/kmk/w32/Makefile.in + ( cd src/sed/config; rm -f intdiv0.m4 intmax.m4 inttypes_h.m4 inttypes.m4 inttypes-pri.m4 isc-posix.m4 longdouble.m4 longlong.m4 mkinstalldirs nls.m4 po.m4 printf-posix.m4 signed.m4 size_max.m4 stdint_h.m4 uintmax_t.m4 ulonglong.m4 wchar_t.m4 wint_t.m4 xsize.m4 ) + ( cd src/sed/intl; rm -f libgnuintl.h.in localcharset.h log.c printf-args.c printf-args.h printf.c printf-parse.c printf-parse.h relocatable.c relocatable.h vasnprintf.c vasnprintf.h vasnwprintf.h wprintf-parse.h xsize.h ) + ( cd src/sed/po; rm -f Makevars.template remove-potcdate.sin ) get-orig-info: svn info $(SVNROOT) get-orig-source: - sh debian/orig-tar.sh $(SVNROOT) $(DEB_UPSTREAM_VERSION) $(REVISION) + sh debian/orig-tar.sh $(SVNROOT) $(UPSTREAM_VERSION) $(REVISION) |