root/alternc-secondarymx/trunk/debian/rules
| Revision 1664, 2.7 kB (checked in by benjamin, 2 years ago) | |
|---|---|
| |
| 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 | ifneq (,$(findstring debug,$(DEB_BUILD_OPTIONS))) |
| 12 | CFLAGS += -g |
| 13 | endif |
| 14 | ifeq (,$(findstring nostrip,$(DEB_BUILD_OPTIONS))) |
| 15 | INSTALL_PROGRAM += -s |
| 16 | endif |
| 17 | |
| 18 | # This has to be exported to make some magic below work. |
| 19 | export DH_OPTIONS |
| 20 | |
| 21 | build: build-stamp |
| 22 | build-stamp: |
| 23 | dh_testdir |
| 24 | |
| 25 | # compilation et installation des binaires |
| 26 | |
| 27 | touch build-stamp |
| 28 | |
| 29 | clean: |
| 30 | dh_testdir |
| 31 | dh_testroot |
| 32 | rm -f build-stamp |
| 33 | debconf-updatepo |
| 34 | dh_clean |
| 35 | |
| 36 | install: DH_OPTIONS= |
| 37 | install: build |
| 38 | dh_testdir |
| 39 | dh_testroot |
| 40 | dh_clean -k |
| 41 | dh_installdirs |
| 42 | |
| 43 | # default perms that should be used |
| 44 | # usr/lib/alternc/* root.www-data 750 |
| 45 | # etc/alternc/* root.root 750 |
| 46 | |
| 47 | # Add here commands to install the package into debian/tmp. |
| 48 | # conffiles |
| 49 | install -o root -g root -m0755 secondarymx debian/alternc-secondarymx/usr/sbin/ |
| 50 | install -o root -g root -m0644 secondarymx.conf debian/alternc-secondarymx/etc/secondarymx/ |
| 51 | chown root.root debian/alternc-secondarymx/var/cache/secondarymx |
| 52 | |
| 53 | # This single target is used to build all the packages, all at once, or |
| 54 | # one at a time. So keep in mind: any options passed to commands here will |
| 55 | # affect _all_ packages. Anything you want to only affect one package |
| 56 | # should be put in another target, such as the install target. |
| 57 | |
| 58 | binary-common: build install |
| 59 | dh_testdir |
| 60 | dh_testroot |
| 61 | dh_installchangelogs |
| 62 | dh_installdocs |
| 63 | # dh_installexamples |
| 64 | # dh_installmenu |
| 65 | dh_installdebconf |
| 66 | dh_installlogrotate |
| 67 | # dh_installemacsen |
| 68 | # dh_installpam |
| 69 | # dh_installmime |
| 70 | # dh_installinit |
| 71 | # dh_installman |
| 72 | dh_installcron |
| 73 | # dh_installinfo |
| 74 | # dh_installman |
| 75 | dh_strip |
| 76 | dh_link |
| 77 | dh_compress |
| 78 | #we handle our own perms |
| 79 | # dh_fixperms |
| 80 | |
| 81 | |
| 82 | # dh_makeshlibs |
| 83 | dh_installdeb |
| 84 | dh_perl |
| 85 | # dh_shlibdeps |
| 86 | dh_gencontrol -- -cdebian/control |
| 87 | dh_md5sums |
| 88 | dh_builddeb |
| 89 | |
| 90 | # Build architecture independant packages using the common target. |
| 91 | binary-indep: build install binary-common |
| 92 | # (Uncomment this next line if you have such packages.) |
| 93 | # $(MAKE) -f debian/rules DH_OPTIONS=-i binary-common |
| 94 | |
| 95 | # Build architecture dependant packages using the common target. |
| 96 | binary-arch: build install binary-common |
| 97 | # $(MAKE) -f debian/rules DH_OPTIONS=-a binary-common |
| 98 | |
| 99 | # Any other binary targets build just one binary package at a time. |
| 100 | # binary-%: build install |
| 101 | # make -f debian/rules binary-common DH_OPTIONS=-p$* |
| 102 | |
| 103 | # binary: binary-indep binary-arch |
| 104 | # .PHONY: build clean binary-indep binary-arch binary install |
| 105 | |
| 106 | binary: binary-common |
| 107 | |
| 108 | .PHONY: build clean binary install |
Note: See TracBrowser for help on using the browser.
