source: branches/2.2.5/pbconf/mindi-busybox/deb/rules @ 1766

Last change on this file since 1766 was 1766, checked in by Bruno Cornec, 13 years ago
  • strace useful for debug
  • fix new versions for pb (2.0.0 for mindi and 1.7.2 for mindi-busybox)
  • fix build process for mindi-busybox + options used in that version (dd for label-partitions-as-necessary)
  • fix typo in label-partitions-as-necessary which doesn't seem to work
  • Property svn:executable set to *
File size: 1.7 KB
RevLine 
[823]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.
[1674]9PACKAGE_NAME = PBPKG
[823]10
[990]11# Don't set any compiler flags - busybox does that just fine
[823]12
[990]13configure: configure-stamp
[823]14
[990]15configure-stamp:
[982]16    dh_testdir
[990]17    touch configure-stamp
[982]18
19# Build both architecture dependent and independent
[990]20build: build-stamp
[982]21
[990]22build-stamp: configure-stamp
[982]23    dh_testdir
24
25    # Compile the package.
[990]26    mv .config .config.sav
27    $(MAKE) distclean
28    mv .config.sav .config
[982]29    $(MAKE) oldconfig
30    $(MAKE) busybox
31
32    touch build-stamp
33
[823]34clean:
35    dh_testdir
36    dh_testroot
[990]37    rm -f build-stamp configure-stamp
[982]38    # Clean temporary document directory
39    rm -rf debian/doc-temp
40    # Clean up.
[990]41    -mv .config .config.sav
[982]42    -$(MAKE) distclean
[990]43    -mv .config.sav .config
44    -rm -f busybox
[982]45
[823]46    dh_clean
47
[982]48# Install architecture dependent and independent
[990]49install: build
[823]50    dh_testdir
51    dh_testroot
[990]52    dh_clean -k
53    dh_installdirs
[823]54
[982]55    # Install the package files into build directory:
56    # - start with upstream make install
[1766]57    $(MAKE) install CONFIG_PREFIX=$(CURDIR)/debian/$(PACKAGE_NAME)/usr/lib/mindi/rootfs
[982]58    # - copy doc
59    mkdir -p debian/doc-temp
[1766]60    cp -a ChangeLog INSTALL LICENSE AUTHORS README TODO svn.log debian/doc-temp
[823]61
[982]62    dh_install -s
63
[990]64# Build architecture independant packages using the common target.
65binary-indep: build install
66    # None
[982]67
[990]68# Build architecture dependant packages using the common target.
69binary-arch: build install
[982]70    dh_testdir
71    dh_testroot
[823]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
[982]81binary: binary-arch binary-indep
[990]82.PHONY: build clean binary-indep binary-arch binary install configure
Note: See TracBrowser for help on using the repository browser.