Debian Codegraph @

Makefile

raw
1 #!/usr/bin/make -f
2
3 # Makefile for ttf-fifthhorseman-dkg-handwriting
4
5 # (c) 2007-2009 Daniel Kahn Gillmor <[email protected]>
6 # Licensed under GPL v3 or later
7
8 # This Makefile is mostly a dummy, but it should allow for building an
9 # "upstream" tarball, and for a quick way to build the fonts cleanly.
10
11 dkg.ttf: dkg-handwriting.sfd dkg-handwriting.pe
12 ./dkg-handwriting.pe
13
14 dkgTTFs.zip: dkg.ttf
15 ln -s . dkg-handwriting-font
16 zip dkgTTFs.zip dkg-handwriting-font/*.ttf dkg-handwriting-font/README.TXT
17 rm -f dkg-handwriting-font
18
19 clean:
20 rm -f *.ttf dkgTTFs.zip
21
22 # invoke this target like `make VERSION=0.1 release' to build an
23 # "upstream tarball" in the build subdir (note: the curly braces are a
24 # bashism -- you can only "make release" from bash or an equivalent)
25 release:
26 mkdir -p build/upstream
27 ln -s ../.. build/upstream/ttf-fifthhorseman-dkg-handwriting-$(VERSION)
28 (cd build/upstream && tar czf ../ttf-fifthhorseman-dkg-handwriting_$(VERSION).tar.gz --exclude=.svn --exclude=*~ ttf-fifthhorseman-dkg-handwriting-$(VERSION)/{COPYING,README.TXT,Makefile,dkg-handwriting.{pe,sfd}})
29 rm -f build/upstream/ttf-fifthhorseman-dkg-handwriting-$(VERSION)