cc4af94a7eac61149475206a80cbf1f2ff1f6f10
1 #!/usr/bin/make -f
2 # -*- makefile -*-
3 # debian/rules file to build GOsa packages.
4 #
5 # This file was originally written by Joey Hess and Craig Small.
6 # As a special exception, when this file is copied by dh-make into a
7 # dh-make output file, you may use that output file without restriction.
8 # This special exception was added by Craig Small in version 0.37 of dh-make.
10 # Uncomment this to turn on verbose mode.
11 #export DH_VERBOSE=1
13 # This has to be exported to make some magic below work.
14 export DH_OPTIONS
16 configure: configure-stamp
17 configure-stamp:
18 dh_testdir
19 touch configure-stamp
21 build: patch build-indep
22 #*************************************************
23 #* Building GOsa into a Debian/GNU Linux Package *
24 #* please stand by *
25 #*************************************************
28 build-indep: build-indep-stamp
29 build-indep-stamp: configure-stamp
30 touch $@
32 clean: clean-patched unpatch
33 clean-patched:
34 dh_testdir
35 dh_testroot
36 rm -f build-indep-stamp configure-stamp
38 dh_clean
40 unpatch:
41 dpatch deapply-all
42 rm -rf patch-stamp debian/patched
44 install: install-indep
45 install-indep:
46 dh_testdir
47 dh_testroot
48 dh_clean -k -i
49 dh_installdirs -i
50 dh_install -i --exclude COPYING
52 binary-common:
53 dh_testdir
54 dh_testroot
55 install -D -m 644 debian/gosa.lintian-overrides debian/gosa/usr/share/lintian/overrides/gosa
56 dh_installchangelogs Changelog
57 dh_installdocs
58 dh_installexamples
59 dh_installmenu
60 dh_installdebconf
61 dh_installman
62 rm -rf debian/gosa/usr/share/gosa/include/smarty
63 dh_strip
64 dh_desktop
65 dh_compress
66 # This is an ugly workaround to preserve gosa.conf from beeing compressed. Excluding it
67 # above does not work, because the manual page will match the expression, too.
68 gzip -d debian/gosa/usr/share/doc/gosa/gosa.conf.gz
69 dh_fixperms
70 dh_installdeb
71 dh_gencontrol
72 dh_md5sums
73 dh_builddeb
75 patch: patch-stamp
76 patch-stamp:
77 dpatch apply-all
78 dpatch cat-all >patch-stamp
80 binary-indep: build-indep install-indep
81 $(MAKE) -f debian/rules DH_OPTIONS=-i binary-common
83 binary: binary-indep
85 binary-arch:
86 .PHONY: build clean binary-indep binary install install-indep configure