root/alternc-changepass/branches/r1/debian/rules

Revision 1088, 2.9 kB (checked in by anonymous, 4 years ago)

Initial revision

  • Property svn:eol-style set to native
  • Property svn:executable set to *
  • Property svn:keywords set to Author Date Id Revision
Line 
1 #!/usr/bin/make -f
2 # Sample debian/rules that uses debhelper.
3 # This file is public domain software, originally written by Joey Hess.
4 #
5 # This version is for a multibinary package. It also allows you to build any
6 # of the binary packages independantly, via binary-<package> targets.
7
8 # Uncomment this to turn on verbose mode.
9 export DH_VERBOSE=1
10
11 ########################################
12 ## TODO
13 ## Virer les lignes # inutiles ou historiques (marquées ##)
14
15
16 # This has to be exported to make some magic below work.
17 export DH_OPTIONS
18
19 build: build-stamp
20 build-stamp:
21         dh_testdir
22
23 # compilation et installation des binaires
24 # pushd src; make; popd
25
26         touch build-stamp
27
28 clean:
29         dh_testdir
30         dh_testroot
31         rm -f build-stamp
32
33 # Add here commands to clean up after the build process.
34 #-$(MAKE) clean
35 #-$(MAKE) distclean
36 # pushd src; make clean; popd
37
38         dh_clean
39
40 install: DH_OPTIONS=
41 install: build
42         dh_testdir
43         dh_testroot
44         dh_clean -k
45         dh_installdirs
46
47
48 # Add here commands to install the package into debian/alternc-awstats.
49 #$(MAKE) prefix=`pwd`/debian/alternc-awstats/usr install
50
51 # Copy the desk files
52         cp change.php config.php README setup.php debian/alternc-changepass/usr/share/squirrelmail/plugins/alternc-changepass/
53         cp -r locales/* debian/alternc-changepass/var/alternc/bureau/locales/
54 # Remove CVS entries.
55         find debian/alternc-changepass/ -depth -name CVS -type d -exec rm -rf {} \;
56         find debian/alternc-changepass/ -type f -exec chown 33.33 {} \;
57
58 #       dh_install --prefix=install/alternc
59
60 # This single target is used to build all the packages, all at once, or
61 # one at a time. So keep in mind: any options passed to commands here will
62 # affect _all_ packages. Anything you want to only affect one package
63 # should be put in another target, such as the install target.
64
65 binary-common: build install
66         dh_testdir
67         dh_testroot
68         dh_installchangelogs
69         dh_installdocs
70 #       dh_installexamples
71 #       dh_installmenu
72         dh_installdebconf
73 #       dh_installlogrotate
74 #       dh_installemacsen
75 #       dh_installpam
76 #       dh_installmime
77 #       dh_installinit
78 #       dh_installman
79         dh_installcron
80 #       dh_installinfo
81 #       dh_undocumented
82 #       dh_installman
83 #       dh_strip
84         dh_link
85         dh_compress
86         dh_fixperms
87
88
89 #       dh_makeshlibs
90         dh_installdeb
91         dh_perl
92 #       dh_shlibdeps
93         dh_gencontrol -- -cdebian/control
94         dh_md5sums
95         dh_builddeb
96
97 # Build architecture independant packages using the common target.
98 binary-indep: build install binary-common
99 # (Uncomment this next line if you have such packages.)
100 #        $(MAKE) -f debian/rules DH_OPTIONS=-i binary-common
101
102 # Build architecture dependant packages using the common target.
103 binary-arch: build install binary-common
104 #       $(MAKE) -f debian/rules DH_OPTIONS=-a binary-common
105
106 # Any other binary targets build just one binary package at a time.
107 # binary-%: build install
108 #       make -f debian/rules binary-common DH_OPTIONS=-p$*
109
110 # binary: binary-indep binary-arch
111 # .PHONY: build clean binary-indep binary-arch binary install
112
113 binary: binary-common
114
115 .PHONY: build clean binary install
Note: See TracBrowser for help on using the browser.