Changeset 987 in MondoRescue for branches/2.2.0/mindi-busybox/distributions/debian/rules
- Timestamp:
- Nov 26, 2006, 11:44:09 PM (17 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/2.2.0/mindi-busybox/distributions/debian/rules
r986 r987 9 9 PACKAGE_NAME = mindi-busybox 10 10 11 # These are used for cross-compiling and for saving the configure script 12 # from having to guess our platform (since we know it already) 13 DEB_HOST_GNU_TYPE ?= $(shell dpkg-architecture -qDEB_HOST_GNU_TYPE) 14 DEB_BUILD_GNU_TYPE ?= $(shell dpkg-architecture -qDEB_BUILD_GNU_TYPE) 11 # Don't set any compiler flags - busybox does that just fine 15 12 16 CFLAGS = -Wall 17 18 ifneq (,$(findstring noopt,$(DEB_BUILD_OPTIONS))) 19 CFLAGS += -O0 20 else 21 CFLAGS += -O2 22 endif 23 ifeq (,$(findstring nostrip,$(DEB_BUILD_OPTIONS))) 24 INSTALL_PROGRAM += -s 25 endif 13 configure: configure-stamp 14 configure-stamp: 15 dh_testdir 16 touch configure-stamp 26 17 27 18 # Build both architecture dependent and independent 28 build: build- arch build-indep19 build: build-stamp 29 20 30 # Build architecture dependent 31 build-arch: build-arch-stamp 32 33 build-arch-stamp: Makefile 21 build-stamp: configure-stamp 34 22 dh_testdir 35 23 36 24 # Compile the package. 25 mv .config .config.sav 26 $(MAKE) distclean 27 mv .config.sav .config 37 28 $(MAKE) oldconfig 38 29 $(MAKE) busybox … … 40 31 touch build-stamp 41 32 42 # Build architecture independent43 build-indep: build-indep-stamp44 45 build-indep-stamp: Makefile46 # Nothing to do, the only indep item is the manual which is available as html in original source47 touch build-indep-stamp48 49 33 clean: 50 34 dh_testdir 51 35 dh_testroot 52 rm -f build- arch-stamp build-indep-stamp36 rm -f build-stamp configure-stamp 53 37 # Clean temporary document directory 54 38 rm -rf debian/doc-temp 55 39 # Clean up. 40 -mv .config .config.sav 56 41 -$(MAKE) distclean 57 rm -f config.log 58 ifneq "$(wildcard /usr/share/misc/config.sub)" "" 59 cp -f /usr/share/misc/config.sub config.sub 60 endif 61 ifneq "$(wildcard /usr/share/misc/config.guess)" "" 62 cp -f /usr/share/misc/config.guess config.guess 63 endif 42 -mv .config.sav .config 43 -rm -f busybox 64 44 65 45 dh_clean 66 46 67 47 # Install architecture dependent and independent 68 install: install-arch install-indep 69 70 # Install architecture dependent 71 install-arch: build-arch 48 install: build 72 49 dh_testdir 73 50 dh_testroot 74 dh_clean -k -s75 dh_installdirs -s51 dh_clean -k 52 dh_installdirs 76 53 77 54 # Install the package files into build directory: … … 80 57 # - copy doc 81 58 mkdir -p debian/doc-temp 82 cp -a ChangeLog INSTALL LICENSE AUTHORS README TODO changelog svn.log debian/doc-temp /html59 cp -a ChangeLog INSTALL LICENSE AUTHORS README TODO changelog svn.log debian/doc-temp 83 60 84 61 dh_install -s 85 62 86 # Install architecture independent 87 install-indep: build-indep 63 # Build architecture independant packages using the common target. 64 binary-indep: build install 65 # None 66 67 # Build architecture dependant packages using the common target. 68 binary-arch: build install 88 69 dh_testdir 89 70 dh_testroot 90 dh_clean -k -i 91 dh_installdirs -i 92 dh_install -i 93 94 # Must not depend on anything. This is to be called by 95 # binary-arch/binary-indep 96 # in another 'make' thread. 97 binary-common: 98 dh_testdir 99 dh_testroot 100 dh_installchangelogs ChangeLog 71 dh_installchangelogs Changelog 101 72 dh_installdocs 102 dh_installman103 dh_link104 73 dh_strip 105 74 dh_compress 106 75 dh_fixperms 107 76 dh_installdeb 108 dh_shlibdeps109 77 dh_gencontrol 110 78 dh_md5sums 111 79 dh_builddeb 112 80 113 # Build architecture independant packages using the common target.114 binary-indep: build-indep install-indep115 $(MAKE) -f debian/rules DH_OPTIONS=-i binary-common116 117 # Build architecture dependant packages using the common target.118 binary-arch: build-arch install-arch119 $(MAKE) -f debian/rules DH_OPTIONS=-a binary-common120 121 # Build architecture depdendent and independent packages122 81 binary: binary-arch binary-indep 123 .PHONY: clean binary82 .PHONY: build clean binary-indep binary-arch binary install configure
Note:
See TracChangeset
for help on using the changeset viewer.