|
Last change
on this file since 1794 was 1387, checked in by Bruno Cornec, 14 years ago |
- MondoRescue 3.0.0 build fixes (Mandriva macro for configure, iremoval of Changelog for deb) + announce
|
-
Property svn:executable
set to
*
|
|
File size:
1.7 KB
|
| Line | |
|---|
| 1 | #!/usr/bin/make -f
|
|---|
| 2 | # Sample debian/rules that uses debhelper.
|
|---|
| 3 | # GNU copyright 1997 to 1999 by Joey Hess.
|
|---|
| 4 |
|
|---|
| 5 | # Uncomment this to turn on verbose mode.
|
|---|
| 6 | #export DH_VERBOSE=1
|
|---|
| 7 |
|
|---|
| 8 | # Define package name for a one-stop change.
|
|---|
| 9 | PACKAGE_NAME = PBPKG
|
|---|
| 10 |
|
|---|
| 11 | # Don't set any compiler flags - busybox does that just fine
|
|---|
| 12 |
|
|---|
| 13 | configure: configure-stamp
|
|---|
| 14 |
|
|---|
| 15 | configure-stamp:
|
|---|
| 16 | dh_testdir
|
|---|
| 17 | touch configure-stamp
|
|---|
| 18 |
|
|---|
| 19 | # Build both architecture dependent and independent
|
|---|
| 20 | build: build-stamp
|
|---|
| 21 |
|
|---|
| 22 | build-stamp: configure-stamp
|
|---|
| 23 | dh_testdir
|
|---|
| 24 |
|
|---|
| 25 | # Compile the package.
|
|---|
| 26 | mv .config .config.sav
|
|---|
| 27 | $(MAKE) distclean
|
|---|
| 28 | mv .config.sav .config
|
|---|
| 29 | $(MAKE) oldconfig
|
|---|
| 30 | $(MAKE) busybox
|
|---|
| 31 |
|
|---|
| 32 | touch build-stamp
|
|---|
| 33 |
|
|---|
| 34 | clean:
|
|---|
| 35 | dh_testdir
|
|---|
| 36 | dh_testroot
|
|---|
| 37 | rm -f build-stamp configure-stamp
|
|---|
| 38 | # Clean temporary document directory
|
|---|
| 39 | rm -rf debian/doc-temp
|
|---|
| 40 | # Clean up.
|
|---|
| 41 | -mv .config .config.sav
|
|---|
| 42 | -$(MAKE) distclean
|
|---|
| 43 | -mv .config.sav .config
|
|---|
| 44 | -rm -f busybox
|
|---|
| 45 |
|
|---|
| 46 | dh_clean
|
|---|
| 47 |
|
|---|
| 48 | # Install architecture dependent and independent
|
|---|
| 49 | install: build
|
|---|
| 50 | dh_testdir
|
|---|
| 51 | dh_testroot
|
|---|
| 52 | dh_clean -k
|
|---|
| 53 | dh_installdirs
|
|---|
| 54 |
|
|---|
| 55 | # Install the package files into build directory:
|
|---|
| 56 | # - start with upstream make install
|
|---|
| 57 | $(MAKE) install CONFIG_PREFIX=$(CURDIR)/debian/$(PACKAGE_NAME)/usr/lib/mindi/rootfs
|
|---|
| 58 | # - copy doc
|
|---|
| 59 | mkdir -p debian/doc-temp
|
|---|
| 60 | cp -a INSTALL LICENSE AUTHORS README TODO NEWS debian/doc-temp #svn.log ChangeLog
|
|---|
| 61 |
|
|---|
| 62 | dh_install -s
|
|---|
| 63 |
|
|---|
| 64 | # Build architecture independant packages using the common target.
|
|---|
| 65 | binary-indep: build install
|
|---|
| 66 | # None
|
|---|
| 67 |
|
|---|
| 68 | # Build architecture dependant packages using the common target.
|
|---|
| 69 | binary-arch: build install
|
|---|
| 70 | dh_testdir
|
|---|
| 71 | dh_testroot
|
|---|
| 72 | dh_installdocs
|
|---|
| 73 | dh_strip
|
|---|
| 74 | dh_compress
|
|---|
| 75 | dh_fixperms
|
|---|
| 76 | dh_installdeb
|
|---|
| 77 | dh_gencontrol
|
|---|
| 78 | dh_md5sums
|
|---|
| 79 | dh_builddeb
|
|---|
| 80 |
|
|---|
| 81 | binary: binary-arch binary-indep
|
|---|
| 82 | .PHONY: build clean binary-indep binary-arch binary install configure
|
|---|
Note:
See
TracBrowser
for help on using the repository browser.