~ubuntu-branches/ubuntu/oneiric/ttf-kacst/oneiric

« back to all changes in this revision

Viewing changes to debian/rules

  • Committer: Bazaar Package Importer
  • Author(s): Clint Adams
  • Date: 2004-03-01 20:28:23 UTC
  • Revision ID: james.westby@ubuntu.com-20040301202823-vuah7m3uuc0znakt
Tags: 1.5-1
Initial Release.

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
#!/usr/bin/make -f
 
2
 
 
3
define checkdir
 
4
        test -f debian/rules
 
5
endef
 
6
 
 
7
build:
 
8
 
 
9
clean: checkroot
 
10
        rm -rf debian/ttf-kacst
 
11
 
 
12
install: build checkroot
 
13
        install -d debian/ttf-kacst/etc/defoma/hints/ \
 
14
                   debian/ttf-kacst/usr/share/fonts/truetype/ttf-kacst/
 
15
        install -m0644 debian/defoma-hints \
 
16
                       debian/ttf-kacst/etc/defoma/hints/ttf-kacst.hints
 
17
        install -m0644 *.ttf debian/ttf-kacst/usr/share/fonts/truetype/ttf-kacst/
 
18
 
 
19
binary-arch: build install
 
20
 
 
21
binary-indep: build install
 
22
        install -d debian/ttf-kacst/usr/share/doc/ttf-kacst \
 
23
                   debian/ttf-kacst/DEBIAN
 
24
        install -m0644 debian/changelog debian/ttf-kacst/usr/share/doc/ttf-kacst/changelog.Debian
 
25
        install -m0644 debian/copyright debian/ttf-kacst/usr/share/doc/ttf-kacst/copyright
 
26
        gzip -9f debian/ttf-kacst/usr/share/doc/ttf-kacst/changelog.Debian
 
27
        install -m0755 debian/postinst debian/prerm debian/ttf-kacst/DEBIAN
 
28
        install -m0644 debian/conffiles debian/ttf-kacst/DEBIAN
 
29
        dpkg-gencontrol -ldebian/changelog -isp -Pdebian/ttf-kacst
 
30
        chmod 644 debian/ttf-kacst/DEBIAN/control
 
31
 
 
32
        cd debian/ttf-kacst && find . -type f ! -path "etc/defoma/hints/ttf-kacst.hints"  ! -regex '.*/DEBIAN/.*' -printf '%P\0' | xargs -r0 md5sum > DEBIAN/md5sums
 
33
        chown -R root:root debian/ttf-kacst
 
34
        dpkg-deb --build debian/ttf-kacst ..
 
35
 
 
36
 
 
37
checkroot:
 
38
        $(checkdir)
 
39
        test root = "`whoami`"
 
40
 
 
41
binary: binary-indep binary-arch
 
42
.PHONY: build clean binary-indep binary-arch binary install configure checkroot