Remove generated files in clean target.
[debian/fosdem-schedule.git] / debian / rules
1 #!/usr/bin/make -f
2
3 PACKAGE = $(shell dh_listpackages)
4 TMP     = $(CURDIR)/debian/$(PACKAGE)
5 SQLITE  = $(shell dpkg-query --show --showformat='$${Version}\n' libqt4-sql-sqlite | sed -e 's/-[^-]\+$$//')
6
7 %:
8         dh $@
9
10 override_dh_clean:
11         dh_clean
12         $(RM) -r src/bin/
13
14 override_dh_auto_build:
15         dh_auto_build
16         pod2man debian/$(PACKAGE).pod > debian/$(PACKAGE).1
17         convert -geometry 32x32 ./data/64x64/fosdem.png debian/fosdem-schedule.xpm
18
19 override_dh_auto_test:
20         # broken in data, does nothing in src
21
22 override_dh_installchangelogs:
23         dh_installchangelogs NEWS
24
25 override_dh_gencontrol:
26         dh_gencontrol -- \
27         -Vsqlite:Depends="$(SQLITE)"
28
29 get-orig-source:
30         # for svn snapshots, otherwise uscan works
31         sh debian/get-orig-source
32
33 .PHONY: get-orig-source