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 # Build architecture-independent files here.
53 binary-indep: install
54 dh_testdir
55 dh_testroot
56 dh_installchangelogs
57 dh_installdocs
58 dh_installexamples
59 # dh_install
60 # dh_installmenu
61 # dh_installdebconf
62 # dh_installlogrotate
63 # dh_installemacsen
64 # dh_installpam
65 # dh_installmime
66 # dh_installinit
67 # dh_installcron
68 # dh_installinfo
69 # dh_installwm
70 # dh_installudev
71 dh_lintian
72 # dh_undocumented
73 dh_installman
74 dh_link
75 dh_compress
76 dh_fixperms
77 # dh_perl
78 # dh_python
79 dh_installdeb
80 dh_gencontrol
81 dh_md5sums
82 dh_builddeb
84 # Build architecture-dependent files here.
85 binary-arch: install
87 binary: binary-indep binary-arch
88 .PHONY: build clean binary-indep binary-arch binary install configure