Code

Moved files
[gosa.git] / gosa-core / debian / rules
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         touch $@
39 build-indep: build-indep-stamp
40 build-indep-stamp: configure-stamp 
42         touch $@
44 clean: clean-patched unpatch
45 clean-patched:
46         dh_testdir
47         dh_testroot
48         rm -f build-arch-stamp build-indep-stamp configure-stamp
50         dh_clean
52 unpatch:
53         dpatch deapply-all
54         rm -rf patch-stamp debian/patched
56 install: install-indep install-arch
57 install-indep:
58         dh_testdir
59         dh_testroot
60         dh_clean -k -i 
61         dh_installdirs -i
63         # Add here commands to install the indep part of the package into
64         # debian/<package>-doc.
65         #INSTALLDOC#
67         dh_install -i
69 install-arch:
70         dh_testdir
71         dh_testroot
72         dh_clean -k -s 
73         dh_installdirs -s
75         dh_install -s
77 # Must not depend on anything. This is to be called by
78 # binary-arch/binary-indep
79 # in another 'make' thread.
80 binary-common:
81         dh_testdir
82         dh_testroot
83         dh_installchangelogs Changelog
84         dh_installdocs
85         dh_installexamples
86         dh_installmenu
87         dh_installdebconf       
88         dh_installman -pgosa-desktop debian/gosa.1
89         dh_link
90         dh_strip
91         dh_compress 
92         dh_fixperms
93         dh_makeshlibs
94         dh_installdeb
95         dh_shlibdeps
96         dh_gencontrol
97         dh_md5sums
98         dh_builddeb
100 patch: patch-stamp
101 patch-stamp:
102         dpatch apply-all
103         dpatch cat-all >patch-stamp
105 # Build architecture independant packages using the common target.
106 binary-indep: build-indep install-indep
107         $(MAKE) -f debian/rules DH_OPTIONS=-i binary-common
109 # Build architecture dependant packages using the common target.
110 binary-arch: build-arch install-arch
111         $(MAKE) -f debian/rules DH_OPTIONS=-s binary-common
113 binary: binary-arch binary-indep
114 .PHONY: build clean binary-indep binary-arch binary install install-indep install-arch configure