source: ProjectBuilder/projects/mondorescue/pbconf/branches/3.3/mindi-busybox/deb/rules @ 2158

Last change on this file since 2158 was 2158, checked in by Bruno Cornec, 4 years ago

Fix deb directory formondo-doc which wasn't built for deb based distros

  • Try to fix the double build of mindi-busybox
  • Property svn:executable set to *
File size: 1.6 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
7export DESTDIR=$(CURDIR)/debian/$(PACKAGE_NAME)/usr/lib/mindi/rootfs
8
9# Define package name for a one-stop change.
10PACKAGE_NAME = PBPKG
11
12# Don't set any compiler flags - busybox does that just fine
13
14configure: configure-stamp
15
16configure-stamp:
17    dh_testdir
18    touch configure-stamp
19
20# Build both architecture dependent and independent
21build: build-stamp
22
23build-stamp: configure-stamp
24    dh_testdir
25
26    # Compile the package.
27    mv .config .config.sav
28    $(MAKE) distclean
29    mv .config.sav .config
30    $(MAKE) oldconfig
31    $(MAKE) busybox
32
33    touch build-stamp
34
35clean:
36    dh_testdir
37    dh_testroot
38    rm -f build-stamp configure-stamp
39    # Clean temporary document directory
40    rm -rf debian/doc-temp
41    # Clean up.
42    -mv .config .config.sav
43    -$(MAKE) distclean
44    -mv .config.sav .config
45    -rm -f busybox
46
47    dh_clean
48
49# Install architecture dependent and independent
50install: build
51    dh_testdir
52    dh_testroot
53    dh_clean -k
54    dh_installdirs
55
56    # Install the package files into build directory:
57    # - start with upstream make install
58    $(MAKE) install CONFIG_PREFIX=$(DESTDIR)
59    ./mondo-install.sh
60    # - copy doc
61    mkdir -p debian/doc-temp
62    cp -a INSTALL LICENSE AUTHORS README TODO NEWS debian/doc-temp #svn.log ChangeLog
63
64    dh_install -s
65
66# Build architecture dependant packages using the common target.
67binary-arch: build install
68    dh_testdir
69    dh_testroot
70    dh_installdocs
71    dh_strip
72    dh_compress
73    dh_fixperms
74    dh_installdeb
75    dh_gencontrol
76    dh_md5sums
77    dh_builddeb
78
79binary: binary-arch
80.PHONY: build clean binary-arch binary install configure
Note: See TracBrowser for help on using the repository browser.