~ubuntu-branches/debian/experimental/makedev/experimental

« back to all changes in this revision

Viewing changes to debian/rules

  • Committer: Bazaar Package Importer
  • Author(s): Bdale Garbee
  • Date: 2003-11-14 00:06:52 UTC
  • Revision ID: james.westby@ubuntu.com-20031114000652-pqwj9x6uaawt2wgc
Tags: 3.3.8.2-0
* Moving to table-driven MAKEDEV written in C from Red Hat rawhide tree,
  with table content customized for Debian.  RH version 3.3.8-2.
* very little works other than the new 'debootstrap' target, and it's not
  perfect yet.  Use this package at your own risk.

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
#!/usr/bin/make -f
 
2
 
 
3
export DH_VERBOSE=1
 
4
 
 
5
CONF := 00macros ataraid cciss cdrom console dac960 ftape ia64 ibcs ida \
 
6
        ide ipfilter isdn linux1394 linux-2.4.x mouse qic raid sound \
 
7
        std undocumented usb v4l
 
8
 
 
9
DCNF := debian debian-$(shell dpkg-architecture -qDEB_HOST_ARCH)
 
10
 
 
11
CFLAGS = -Wall -g
 
12
 
 
13
ifneq (,$(findstring noopt,$(DEB_BUILD_OPTIONS)))
 
14
        CFLAGS += -O0
 
15
else
 
16
        CFLAGS += -O2
 
17
endif
 
18
ifeq (,$(findstring nostrip,$(DEB_BUILD_OPTIONS)))
 
19
        INSTALL_PROGRAM += -s
 
20
endif
 
21
 
 
22
build: build-stamp
 
23
 
 
24
build-stamp: 
 
25
        dh_testdir
 
26
        $(MAKE)
 
27
        touch build-stamp
 
28
 
 
29
clean:
 
30
        dh_testdir
 
31
        dh_testroot
 
32
        rm -f build-stamp 
 
33
        -$(MAKE) clean
 
34
        dh_clean 
 
35
 
 
36
install: build
 
37
        dh_testdir
 
38
        dh_testroot
 
39
        dh_clean -k 
 
40
        dh_installdirs
 
41
 
 
42
        install -o root -g root -m 0755 MAKEDEV \
 
43
                debian/makedev/sbin/MAKEDEV
 
44
        install -o root -g root -m 0644 MAKEDEV.m \
 
45
                debian/makedev/usr/share/man/man8/MAKEDEV.8
 
46
 
 
47
        cd makedev.d ; install -m644 $(CONF) ../debian/makedev/etc/makedev.d/
 
48
        cd debian/makedev.d ; install -m644 $(DCNF) ../makedev/etc/makedev.d/
 
49
 
 
50
binary-indep: build install
 
51
 
 
52
binary-arch: build install
 
53
        dh_testdir
 
54
        dh_testroot
 
55
        dh_installchangelogs 
 
56
        dh_installdocs MAKEDEV.spec
 
57
        dh_installexamples
 
58
#       dh_install
 
59
#       dh_installmenu
 
60
#       dh_installdebconf       
 
61
#       dh_installlogrotate
 
62
#       dh_installemacsen
 
63
#       dh_installpam
 
64
#       dh_installmime
 
65
#       dh_installinit
 
66
#       dh_installcron
 
67
#       dh_installinfo
 
68
        dh_installman
 
69
        dh_link
 
70
        dh_strip
 
71
        dh_compress
 
72
        dh_fixperms
 
73
#       dh_perl
 
74
#       dh_python
 
75
#       dh_makeshlibs
 
76
        dh_installdeb
 
77
        dh_shlibdeps
 
78
        dh_gencontrol
 
79
        dh_md5sums
 
80
        dh_builddeb
 
81
 
 
82
binary: binary-indep binary-arch
 
83
.PHONY: build clean binary-indep binary-arch binary install