Code

rules: Remove empty directories after install.
[pkg-libkohana2-php.git] / debian / rules
1 #!/usr/bin/make -f
2 # -*- makefile -*-
4 # Uncomment this to turn on verbose mode.
5 #export DH_VERBOSE=1
7 get-orig-source:
8         uscan --force --verbose --repack --rename
10 configure: configure-stamp
11 configure-stamp:
12         dh_testdir
13         # Add here commands to configure the package.
15         touch configure-stamp
18 build: build-stamp
19 build-stamp: configure-stamp
20         dh_testdir
22         # Add here commands to compile the package.
23         #$(MAKE)
24         #docbook-to-man debian/libkohana-php.sgml > libkohana-php.1
26         touch $@
28 clean:
29         dh_testdir
30         dh_testroot
31         rm -f build-stamp configure-stamp
33         dh_clean
35 install: build
36         dh_testdir
37         dh_testroot
38         dh_prep
39         dh_installdirs
41         # Add here commands to install the package into debian/libkohana2-php.
42         cp -a system $(CURDIR)/debian/libkohana2-php/usr/share/php/kohana2/
43         # Remove DejaVu-Fonts and create symlink
44         rm -rf $(CURDIR)/debian/libkohana2-php/usr/share/php/kohana2/system/fonts
45         ln -s /usr/share/fonts/truetype/ttf-dejavu $(CURDIR)/debian/libkohana2-php/usr/share/php/kohana2/system/fonts
47         # fix permissions
48         for file in `find $(CURDIR)/debian/libkohana2-php -name '*.php'`; do \
49                 chmod 644 $$file; \
50         done
52         # remove empty directories
53         rmdir debian/libkohana2-php/usr/share/php/kohana2/system/i18n/el_GR/
54         rmdir debian/libkohana2-php/usr/share/php/kohana2/system/tests/
56 # Build architecture-independent files here.
57 binary-indep: install
58         dh_testdir
59         dh_testroot
60         dh_installchangelogs
61         dh_installdocs
62         dh_installexamples
63 #       dh_install
64 #       dh_installmenu
65 #       dh_installdebconf
66 #       dh_installlogrotate
67 #       dh_installemacsen
68 #       dh_installpam
69 #       dh_installmime
70 #       dh_installinit
71 #       dh_installcron
72 #       dh_installinfo
73 #       dh_installwm
74 #       dh_installudev
75         dh_lintian
76 #       dh_undocumented
77         dh_installman
78         dh_link
79         dh_compress
80         dh_fixperms
81 #       dh_perl
82 #       dh_python
83         dh_installdeb
84         dh_gencontrol
85         dh_md5sums
86         dh_builddeb
88 # Build architecture-dependent files here.
89 binary-arch: install
91 binary: binary-indep binary-arch
92 .PHONY: build clean binary-indep binary-arch binary install configure