File: rules

package info (click to toggle)
jack-tools 0.0.2-5
  • links: PTS
  • area: main
  • in suites: lenny
  • size: 256 kB
  • ctags: 4
  • sloc: makefile: 51
file content (76 lines) | stat: -rwxr-xr-x 2,546 bytes parent folder | download
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
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
#!/usr/bin/make -f
# rules
#
# Robert Jordens <jordens@debian.org>
#
# This software may be used and distributed according to the terms
# of the GNU General Public License, incorporated herein by reference.
#
# $Id$
#

#include /usr/share/cdbs/1/class/makefile.mk
include /usr/share/cdbs/1/class/langcore.mk
DEB_UPSTREAM_VERSION := $(shell echo $(DEB_VERSION) | sed 's/-[^-]*//')

# Hrmm
DEB_TAR_SRCDIR := .
#DEB_TAR_SRCDIR := $(DEB_SOURCE_PACKAGE)-$(DEB_UPSTREAM_TARBALL_VERSION)
include /usr/share/cdbs/1/rules/tarball.mk
include /usr/share/cdbs/1/rules/patchsys-quilt.mk
#include /usr/share/cdbs/1/class/autotools.mk
include /usr/share/cdbs/1/rules/debhelper.mk

DEB_INSTALL_CHANGELOGS_ALL =
DEB_INSTALL_DOCS_ALL =

common-binary-post-install-arch::
	dh_buildinfo

# This is a cheap hack to make cdbs use all the tarballs' configure
post-patches:: debian/stamp-autotools-maintregen-arch
debian/stamp-autotools-maintregen-arch:
	-@set -e -v; confs=build-tree/*/autogen.sh;\
	for conf in $$confs; do \
	cd `dirname $$conf`; sh `basename $$conf`; cd $(CURDIR);\
	done && touch debian/stamp-autotools-maintregen-arch

common-configure-arch:: debian/stamp-configure-dirs
debian/stamp-configure-dirs:
	-@set -e -v; confs=build-tree/*/configure;\
	for conf in $$confs; do \
	cd `dirname $$conf`;\
	./`basename $$conf` $(DEB_CONFIGURE_NORMAL_ARGS) --disable-maintainer-mode $(cdbs_configure_flags) $(DEB_CONFIGURE_EXTRA_FLAGS) $(DEB_CONFIGURE_USER_FLAGS);\
	cd $(CURDIR);\
	done && touch debian/stamp-configure-dirs

common-build-arch:: debian/stamp-build-dirs
debian/stamp-build-dirs:
	-@set -e -v; confs=build-tree/*/Makefile;\
	for conf in $$confs; do \
	cd `dirname $$conf`;\
	make $(DEB_MAKE_BUILD_TARGET);\
	cd $(CURDIR);\
	done && touch debian/stamp-build-dirs

common-install-arch:: debian/stamp-install-dirs
debian/stamp-install-dirs:
	-@set -e -v; confs=build-tree/*/Makefile;\
	for conf in $$confs; do \
	cd `dirname $$conf`;\
	make $(DEB_MAKE_INSTALL_TARGET);\
	cd $(CURDIR);\
	done && touch debian/stamp-install-dirs

.PHONY: update-create-orig-tarball
update-create-orig-tarball:
	mkdir -p tmp-orig-tree/$(DEB_SOURCE_PACKAGE)-$(DEB_UPSTREAM_VERSION).orig
	cp *.tar.* tmp-orig-tree/$(DEB_SOURCE_PACKAGE)-$(DEB_UPSTREAM_VERSION).orig
	tar -C tmp-orig-tree -czvf \
		../$(DEB_SOURCE_PACKAGE)_$(DEB_UPSTREAM_VERSION).orig.tar.gz \
		$(DEB_SOURCE_PACKAGE)-$(DEB_UPSTREAM_VERSION).orig

clean::
	-rm debian/stamp-configure-dirs debian/stamp-build-dirs \
	debian/stamp-install-dirs debian/stamp-autotools-maintregen-arch 
	-rm -r tmp-orig-tree