Last change
on this file since 2636 was 2158, checked in by Bruno Cornec, 8 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
|
Rev | Line | |
---|
[384] | 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
|
---|
[1805] | 7 | export DESTDIR=$(CURDIR)/debian/$(PACKAGE_NAME)/usr/lib/mindi/rootfs
|
---|
[384] | 8 |
|
---|
| 9 | # Define package name for a one-stop change.
|
---|
| 10 | PACKAGE_NAME = PBPKG
|
---|
| 11 |
|
---|
| 12 | # Don't set any compiler flags - busybox does that just fine
|
---|
| 13 |
|
---|
| 14 | configure: configure-stamp
|
---|
| 15 |
|
---|
| 16 | configure-stamp:
|
---|
| 17 | dh_testdir
|
---|
| 18 | touch configure-stamp
|
---|
| 19 |
|
---|
| 20 | # Build both architecture dependent and independent
|
---|
| 21 | build: build-stamp
|
---|
| 22 |
|
---|
| 23 | build-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 |
|
---|
| 35 | clean:
|
---|
| 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
|
---|
| 50 | install: 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
|
---|
[1805] | 58 | $(MAKE) install CONFIG_PREFIX=$(DESTDIR)
|
---|
| 59 | ./mondo-install.sh
|
---|
[384] | 60 | # - copy doc
|
---|
| 61 | mkdir -p debian/doc-temp
|
---|
[1387] | 62 | cp -a INSTALL LICENSE AUTHORS README TODO NEWS debian/doc-temp #svn.log ChangeLog
|
---|
[384] | 63 |
|
---|
| 64 | dh_install -s
|
---|
| 65 |
|
---|
| 66 | # Build architecture dependant packages using the common target.
|
---|
| 67 | binary-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 |
|
---|
[2158] | 79 | binary: binary-arch
|
---|
| 80 | .PHONY: build clean binary-arch binary install configure
|
---|
Note:
See
TracBrowser
for help on using the repository browser.