diff options
author | Caius Chance <cchance@redhat.com> | 2008-05-02 08:13:00 +0400 |
---|---|---|
committer | Caius Chance <cchance@redhat.com> | 2008-05-02 08:13:00 +0400 |
commit | c9bf24210d99ab6d1fe83745e6b58086bef61dda (patch) | |
tree | 6fbf4d6e66c84defd19b76d59f25e0223254c202 /Makefile | |
parent | f1822865cba0d06f48673dd4efd9e41a077f4bda (diff) |
Corrected regular fonts filenames.
Fixed 'dist' and 'src' make targets.
Diffstat (limited to 'Makefile')
-rw-r--r-- | Makefile | 40 |
1 files changed, 40 insertions, 0 deletions
diff --git a/Makefile b/Makefile new file mode 100644 index 0000000..4f1079a --- /dev/null +++ b/Makefile @@ -0,0 +1,40 @@ +VER = 1.04 +FONTFORGE = /usr/bin/fontforge + +SRCDIRS = $(shell find -type d | grep -v .git) +BINDIRS = $(shell find -type d | grep -v .git | grep -v src) +SRCFILES = $(shell find -type f | grep -v .git) +SFDFILES = $(shell ls ./src/*.sfd) +TTFFILES = $(shell ls ./build/*.ttf) +BINDOCS = AUTHORS ChangeLog COPYING License.txt README + +all: dist + + +build-ttf: + $(foreach sfdfile, $(SFDFILES), $(FONTFORGE) -script ./scripts/sfd2ttf.pe $(sfdfile);) + mkdir -p build && mv ./src/*.ttf ./build/ + + +dist: clean build-ttf + mkdir -p ../liberation-fonts_build/liberation-fonts + cp $(TTFFILES) $(BINDOCS) ../liberation-fonts_build/liberation-fonts/ + mkdir -p ../liberation-fonts_tar + cd ../liberation-fonts_build && tar czvf \ + ../liberation-fonts_tar/liberation-fonts-$(VER).tar.gz \ + liberation-fonts/ + +src: clean + mkdir -p ../liberation-fonts_build/liberation-fonts + $(foreach tardir, $(SRCDIRS), mkdir -p ../liberation-fonts_build/liberation-fonts/$(tardir);) + $(foreach srcfile, $(SRCFILES), cp $(srcfile) ../liberation-fonts_build/liberation-fonts/$(shell dirname $(srcfile))/;) + mkdir -p ../liberation-fonts_tar + cd ../liberation-fonts_build && tar czvf \ + ../liberation-fonts_tar/liberation-fonts-$(VER).src.tar.gz \ + liberation-fonts/ + + +clean: + rm -rf build + rm -rf ../liberation-fonts_build + rm -rf ../liberation-fonts_tar |