Code

661b99cc13ebc862fb67034bc8e532fa9ddc4722
[pkg-libkohana2-php.git] / debian / rules
1 #!/usr/bin/make -f
2 # debian/rules for kohana2
3 #
4 # Written by Sven Velt <sven@velt.de> and Sebastian Harl <tokkee@debian.org>.
6 # Uncomment this to turn on verbose mode.
7 #export DH_VERBOSE=1
9 get-orig-source:
10         uscan --force --verbose --repack --rename
12 build: build-stamp
13 build-stamp:
14         dh_testdir
16         touch $@
18 clean:
19         dh_testdir
20         dh_testroot
21         rm -f build-stamp configure-stamp
23         dh_clean
25 install: build
26         dh_testdir
27         dh_testroot
28         dh_prep
29         dh_installdirs
31         cp -a system $(CURDIR)/debian/libkohana2-php/usr/share/php/kohana2/
33         # remove DejaVu-Fonts and create symlink
34         rm -rf $(CURDIR)/debian/libkohana2-php/usr/share/php/kohana2/system/fonts
35         ln -s /usr/share/fonts/truetype/ttf-dejavu \
36                 $(CURDIR)/debian/libkohana2-php/usr/share/php/kohana2/system/fonts
38         # fix permissions
39         for file in `find $(CURDIR)/debian/libkohana2-php -name '*.php'`; do \
40                 chmod 644 $$file; \
41         done
43         # remove empty directories
44         rmdir debian/libkohana2-php/usr/share/php/kohana2/system/i18n/el_GR/
45         rmdir debian/libkohana2-php/usr/share/php/kohana2/system/tests/
47 binary-indep: install
48         dh_testdir
49         dh_testroot
50         dh_installchangelogs
51         dh_installdocs
52         dh_installexamples
53         dh_lintian
54         dh_installman
55         dh_link
56         dh_compress
57         dh_fixperms
58         dh_installdeb
59         dh_gencontrol
60         dh_md5sums
61         dh_builddeb
63 binary-arch: install
65 binary: binary-indep binary-arch
66 .PHONY: build clean binary-indep binary-arch binary install configure