File: rules

package info (click to toggle)
fonts-lohit-deva 2.95.4-7
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid
  • size: 940 kB
  • sloc: makefile: 68; xml: 54; python: 39
file content (29 lines) | stat: -rwxr-xr-x 712 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
#!/usr/bin/make -f

# Uncomment this to turn on verbose mode.
#export DH_VERBOSE=1

FONT := Devanagari
SCRIPT := deva
BUILDDIR := build

%:
	dh $@

override_dh_auto_build:
	mkdir -p $(BUILDDIR)
	cp Lohit-$(FONT).sfd $(BUILDDIR)/
	fontforge -lang=py -script apply_featurefile.py \
		$(BUILDDIR)/Lohit-$(FONT).sfd Lohit-$(FONT).fea Lohit-$(FONT).sfd
	(cd $(BUILDDIR) && \
		fontforge -script ../generate.pe Lohit-$(FONT).sfd && \
		ttfautohint -D $(SCRIPT) -f $(SCRIPT) -n Lohit-$(FONT).ttf Lohit.ttf && \
		mv Lohit.ttf Lohit-$(FONT).ttf)

override_dh_auto_clean:
	dh_auto_clean
	rm -rf $(BUILDDIR)

override_dh_auto_test:
	# Skip tests since they aren't working yet
	# https://github.com/pravins/lohit/issues/83