Changeset 990 in MondoRescue for branches/stable/mindi-busybox/distributions/debian/rules
- Timestamp:
- Nov 27, 2006, 12:46:59 AM (18 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/stable/mindi-busybox/distributions/debian/rules
r982 r990 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 13 configure: configure-stamp 17 14 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 26 27 config.status: configure 15 configure-stamp: 28 16 dh_testdir 29 # Configure the package. 30 CFLAGS="$(CFLAGS)" ./configure --host=$(DEB_HOST_GNU_TYPE) --build=$(DEB_BUILD_GNU_TYPE) --prefix=/usr 17 touch configure-stamp 31 18 32 19 # Build both architecture dependent and independent 33 build: build- arch build-indep20 build: build-stamp 34 21 35 # Build architecture dependent 36 build-arch: build-arch-stamp 37 38 build-arch-stamp: config.status 22 build-stamp: configure-stamp 39 23 dh_testdir 40 24 41 25 # Compile the package. 26 mv .config .config.sav 27 $(MAKE) distclean 28 mv .config.sav .config 42 29 $(MAKE) oldconfig 43 30 $(MAKE) busybox … … 45 32 touch build-stamp 46 33 47 # Build architecture independent48 build-indep: build-indep-stamp49 50 build-indep-stamp: config.status51 # Nothing to do, the only indep item is the manual which is available as html in original source52 touch build-indep-stamp53 54 34 clean: 55 35 dh_testdir 56 36 dh_testroot 57 rm -f build- arch-stamp build-indep-stamp37 rm -f build-stamp configure-stamp 58 38 # Clean temporary document directory 59 39 rm -rf debian/doc-temp 60 40 # Clean up. 41 -mv .config .config.sav 61 42 -$(MAKE) distclean 62 rm -f config.log 63 ifneq "$(wildcard /usr/share/misc/config.sub)" "" 64 cp -f /usr/share/misc/config.sub config.sub 65 endif 66 ifneq "$(wildcard /usr/share/misc/config.guess)" "" 67 cp -f /usr/share/misc/config.guess config.guess 68 endif 43 -mv .config.sav .config 44 -rm -f busybox 69 45 70 46 dh_clean 71 47 72 48 # Install architecture dependent and independent 73 install: install-arch install-indep 74 75 # Install architecture dependent 76 install-arch: build-arch 49 install: build 77 50 dh_testdir 78 51 dh_testroot 79 dh_clean -k -s80 dh_installdirs -s52 dh_clean -k 53 dh_installdirs 81 54 82 55 # Install the package files into build directory: … … 85 58 # - copy doc 86 59 mkdir -p debian/doc-temp 87 cp -a ChangeLog INSTALL LICENSE AUTHORS README TODO changelog svn.log debian/doc-temp /html60 cp -a ChangeLog INSTALL LICENSE AUTHORS README TODO changelog svn.log debian/doc-temp 88 61 89 62 dh_install -s 90 63 91 # Install architecture independent 92 install-indep: build-indep 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 93 70 dh_testdir 94 71 dh_testroot 95 dh_clean -k -i96 dh_installdirs -i97 dh_install -i98 99 # Must not depend on anything. This is to be called by100 # binary-arch/binary-indep101 # in another 'make' thread.102 binary-common:103 dh_testdir104 dh_testroot105 dh_installchangelogs ChangeLog106 72 dh_installdocs 107 dh_installman108 dh_link109 73 dh_strip 110 74 dh_compress 111 75 dh_fixperms 112 76 dh_installdeb 113 dh_shlibdeps114 77 dh_gencontrol 115 78 dh_md5sums 116 79 dh_builddeb 117 80 118 # Build architecture independant packages using the common target.119 binary-indep: build-indep install-indep120 $(MAKE) -f debian/rules DH_OPTIONS=-i binary-common121 122 # Build architecture dependant packages using the common target.123 binary-arch: build-arch install-arch124 $(MAKE) -f debian/rules DH_OPTIONS=-a binary-common125 126 # Build architecture depdendent and independent packages127 81 binary: binary-arch binary-indep 128 .PHONY: clean binary82 .PHONY: build clean binary-indep binary-arch binary install configure
Note:
See TracChangeset
for help on using the changeset viewer.