1 #!/usr/bin/make -f
2 # -*- makefile -*-
3 # Sample debian/rules that uses debhelper.
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.
9 #
10 # Modified to make a template file for a multi-binary package with separated
11 # build-arch and build-indep targets by Bill Allombert 2001
13 # Uncomment this to turn on verbose mode.
14 #export DH_VERBOSE=1
16 # This has to be exported to make some magic below work.
17 export DH_OPTIONS
19 configure: configure-stamp
20 configure-stamp:
21 dh_testdir
22 # Add here commands to configure the package.
24 touch configure-stamp
27 #Architecture
28 build: patch build-arch build-indep
29 #*************************************************
30 #* Building GOsa into a Debian/GNU Linux Package *
31 #* please stand by *
32 #*************************************************
34 build-arch: build-arch-stamp
35 build-arch-stamp: configure-stamp
37 # Add here commands to compile the arch part of the package.
38 #$(MAKE)
39 touch $@
41 build-indep: build-indep-stamp
42 build-indep-stamp: configure-stamp
44 touch $@
46 clean: clean-patched unpatch
47 clean-patched:
48 dh_testdir
49 dh_testroot
50 rm -f build-arch-stamp build-indep-stamp configure-stamp
52 dh_clean
54 unpatch:
55 dpatch deapply-all
56 rm -rf patch-stamp debian/patched
58 install: install-indep install-arch
59 install-indep:
60 dh_testdir
61 dh_testroot
62 dh_clean -k -i
63 dh_installdirs -i
65 # Add here commands to install the indep part of the package into
66 # debian/<package>-doc.
67 #INSTALLDOC#
69 dh_install -i
71 install-arch:
72 dh_testdir
73 dh_testroot
74 dh_clean -k -s
75 dh_installdirs -s
77 dh_install -s
79 # Must not depend on anything. This is to be called by
80 # binary-arch/binary-indep
81 # in another 'make' thread.
82 binary-common:
83 dh_testdir
84 dh_testroot
85 dh_installchangelogs Changelog
86 dh_installdocs
87 dh_installexamples
88 dh_installmenu
89 dh_installdebconf
90 dh_installman -pgosa-desktop gosa.1
91 dh_link
92 dh_strip
93 dh_compress
94 dh_fixperms
95 dh_makeshlibs
96 dh_installdeb
97 dh_shlibdeps
98 dh_gencontrol
99 dh_md5sums
100 dh_builddeb
102 patch: patch-stamp
103 patch-stamp:
104 dpatch apply-all
105 dpatch cat-all >patch-stamp
107 # Build architecture independant packages using the common target.
108 binary-indep: build-indep install-indep
109 $(MAKE) -f debian/rules DH_OPTIONS=-i binary-common
111 # Build architecture dependant packages using the common target.
112 binary-arch: build-arch install-arch
113 $(MAKE) -f debian/rules DH_OPTIONS=-s binary-common
115 binary: binary-arch binary-indep
116 .PHONY: build clean binary-indep binary-arch binary install install-indep install-arch configure