Last change
on this file since 2164 was 1805, checked in by Bruno Cornec, 11 years ago |
- mindi-busybox is now built fully under /usr and packge build call the
new post install script
|
-
Property svn:executable
set to
*
|
File size:
1.8 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
|
---|
7 | export DESTDIR=$(CURDIR)/debian/$(PACKAGE_NAME)/usr/lib/mindi/rootfs
|
---|
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
|
---|
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 independant packages using the common target.
|
---|
67 | binary-indep: build install
|
---|
68 | # None
|
---|
69 |
|
---|
70 | # Build architecture dependant packages using the common target.
|
---|
71 | binary-arch: build install
|
---|
72 | dh_testdir
|
---|
73 | dh_testroot
|
---|
74 | dh_installdocs
|
---|
75 | dh_strip
|
---|
76 | dh_compress
|
---|
77 | dh_fixperms
|
---|
78 | dh_installdeb
|
---|
79 | dh_gencontrol
|
---|
80 | dh_md5sums
|
---|
81 | dh_builddeb
|
---|
82 |
|
---|
83 | binary: binary-arch binary-indep
|
---|
84 | .PHONY: build clean binary-indep binary-arch binary install configure
|
---|
Note:
See
TracBrowser
for help on using the repository browser.