1 |
#!/usr/bin/make -f |
#!/usr/bin/make -f |
2 |
# -*- makefile -*- |
APPNAME := qsampler |
|
# Sample debian/rules that uses debhelper. |
|
|
# This file was originally written by Joey Hess and Craig Small. |
|
|
# As a special exception, when this file is copied by dh-make into a |
|
|
# dh-make output file, you may use that output file without restriction. |
|
|
# This special exception was added by Craig Small in version 0.37 of dh-make. |
|
3 |
|
|
4 |
# Uncomment this to turn on verbose mode. |
# Uncomment this to turn on verbose mode. |
5 |
export DH_VERBOSE=1 |
#export DH_VERBOSE=1 |
6 |
|
|
|
export QTDIR=/usr/share/qt3 |
|
|
|
|
|
# These are used for cross-compiling and for saving the configure script |
|
|
# from having to guess our platform (since we know it already) |
|
|
DEB_HOST_GNU_TYPE ?= $(shell dpkg-architecture -qDEB_HOST_GNU_TYPE) |
|
|
DEB_BUILD_GNU_TYPE ?= $(shell dpkg-architecture -qDEB_BUILD_GNU_TYPE) |
|
7 |
|
|
8 |
CFLAGS = -Wall -g |
CFLAGS = -Wall -g |
9 |
|
|
13 |
CFLAGS += -O2 |
CFLAGS += -O2 |
14 |
endif |
endif |
15 |
|
|
16 |
config.status: |
configure: configure-stamp |
17 |
|
configure-stamp: |
18 |
dh_testdir |
dh_testdir |
19 |
|
|
20 |
# Add here commands to configure the package. |
# Add here commands to configure the package. |
21 |
$(MAKE) -f Makefile.svn |
-$(MAKE) -f Makefile.svn |
22 |
chmod a+x configure |
|
23 |
CFLAGS="$(CFLAGS)" ./configure --host=$(DEB_HOST_GNU_TYPE) --build=$(DEB_BUILD_GNU_TYPE) --prefix=/usr --mandir=\$${prefix}/share/man --infodir=\$${prefix}/share/info |
./configure --prefix=/usr |
24 |
|
touch configure-stamp |
25 |
|
|
26 |
|
|
27 |
build: build-stamp |
build: build-stamp |
28 |
|
|
29 |
build-stamp: config.status |
build-stamp: configure-stamp |
30 |
dh_testdir |
dh_testdir |
31 |
|
|
32 |
# Add here commands to compile the package. |
# Add here commands to compile the package. |
33 |
$(MAKE) |
$(MAKE) |
|
#docbook-to-man debian/qsampler.sgml > qsampler.1 |
|
34 |
|
|
35 |
touch build-stamp |
#docbook-to-man debian/$(APPNAME).sgml > $(APPNAME).1 |
36 |
|
|
37 |
|
touch $@ |
38 |
|
|
39 |
clean: |
clean: |
40 |
dh_testdir |
dh_testdir |
41 |
dh_testroot |
dh_testroot |
42 |
rm -f build-stamp |
rm -f build-stamp configure-stamp |
43 |
|
|
44 |
# Add here commands to clean up after the build process. |
# Add here commands to clean up after the build process. |
45 |
-$(MAKE) -f Makefile.svn |
-$(MAKE) -f Makefile.svn clean |
|
chmod a+x configure |
|
|
-$(MAKE) distclean |
|
|
ifneq "$(wildcard /usr/share/misc/config.sub)" "" |
|
|
cp -f /usr/share/misc/config.sub config.sub |
|
|
endif |
|
|
ifneq "$(wildcard /usr/share/misc/config.guess)" "" |
|
|
cp -f /usr/share/misc/config.guess config.guess |
|
|
endif |
|
|
|
|
46 |
|
|
47 |
dh_clean |
dh_clean |
48 |
|
|
49 |
install: build |
install: build |
50 |
dh_testdir |
dh_testdir |
51 |
dh_testroot |
dh_testroot |
52 |
dh_clean -k |
dh_clean -k |
53 |
dh_installdirs |
dh_installdirs |
54 |
|
|
55 |
# Add here commands to install the package into debian/qsampler. |
# Add here commands to install the package |
56 |
$(MAKE) install DESTDIR=$(CURDIR)/debian/qsampler |
$(MAKE) DESTDIR=$(CURDIR)/debian/$(APPNAME) install |
57 |
|
|
58 |
|
|
59 |
# Build architecture-independent files here. |
# Build architecture-independent files here. |
67 |
dh_installchangelogs ChangeLog |
dh_installchangelogs ChangeLog |
68 |
dh_installdocs |
dh_installdocs |
69 |
dh_installexamples |
dh_installexamples |
70 |
dh_install |
# dh_install |
71 |
# dh_installmenu |
# dh_installmenu |
72 |
# dh_installdebconf |
# dh_installdebconf |
73 |
# dh_installlogrotate |
# dh_installlogrotate |
74 |
# dh_installemacsen |
# dh_installemacsen |
75 |
# dh_installpam |
# dh_installpam |
76 |
# dh_installmime |
# dh_installmime |
77 |
|
# dh_python |
78 |
# dh_installinit |
# dh_installinit |
79 |
# dh_installcron |
# dh_installcron |
80 |
# dh_installinfo |
# dh_installinfo |
81 |
dh_installman debian/qsampler.1 |
dh_installman |
82 |
dh_link |
dh_link |
83 |
dh_strip |
dh_strip |
84 |
dh_compress |
dh_compress |
85 |
dh_fixperms |
dh_fixperms |
86 |
# dh_perl |
# dh_perl |
|
# dh_python |
|
87 |
# dh_makeshlibs |
# dh_makeshlibs |
88 |
dh_installdeb |
dh_installdeb |
89 |
dh_shlibdeps |
dh_shlibdeps |
92 |
dh_builddeb |
dh_builddeb |
93 |
|
|
94 |
binary: binary-indep binary-arch |
binary: binary-indep binary-arch |
95 |
.PHONY: build clean binary-indep binary-arch binary install |
.PHONY: build clean binary-indep binary-arch binary install configure |