Code

f4d88bf3ff05dbce85649fa1bc92b92be33b04ae
[gosa.git] / gosa-core / debian / rules
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         #*************************************************
27 build-indep: build-indep-stamp
28 build-indep-stamp: configure-stamp 
29         touch $@
31 clean: clean-patched unpatch
32 clean-patched:
33         dh_testdir
34         dh_testroot
35         rm -f build-indep-stamp configure-stamp
37         dh_clean
39 unpatch:
40         dpatch deapply-all
41         rm -rf patch-stamp debian/patched
43 install: install-indep
44 install-indep:
45         dh_testdir
46         dh_testroot
47         dh_clean -k -i 
48         dh_installdirs -i
50         # Add here commands to install the indep part of the package into
51         # debian/<package>-doc.
52         #INSTALLDOC#
54         dh_install -i --exclude COPYING
56 binary-common:
57         dh_testdir
58         dh_testroot
59         dh_installchangelogs Changelog
60         dh_installdocs
61         dh_installexamples
62         dh_installmenu
63         dh_installdebconf       
64         dh_installman -pgosa-desktop contrib/scripts/gosa.1
65         dh_link
66         dh_strip
67         dh_compress 
68         dh_fixperms
69         dh_makeshlibs
70         dh_installdeb
71         dh_shlibdeps
72         dh_gencontrol
73         dh_md5sums
74         dh_builddeb
76 patch: patch-stamp
77 patch-stamp:
78         dpatch apply-all
79         dpatch cat-all >patch-stamp
81 binary-indep: build-indep install-indep
82         $(MAKE) -f debian/rules DH_OPTIONS=-i binary-common
84 binary: binary-indep
85 .PHONY: build clean binary-indep binary install install-indep configure