summaryrefslogtreecommitdiff
path: root/font/devhtml/devhtml.am
blob: 00f982ac0df81d5b06a0a17af1697a1d893776c0 (plain)
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
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
# Copyright (C) 2014
#   Free Software Foundation, Inc.
#
# This file is part of `groff'
#
# `groff' is free software; you can redistribute it and/or modify it
# under the terms of the GNU General Public License as published by
# the Free Software Foundation, either version 3 of the License, or
# (at your option) any later version.
#
# `groff' is distributed in the hope that it will be useful, but
# WITHOUT ANY WARRANTY; without even the implied warranty of
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
# General Public License for more details.
#
# You should have received a copy of the GNU General Public License
# along with this program. If not, see <http://www.gnu.org/licenses/>.

devhtml_srcdir = $(top_srcdir)/font/devhtml
DEVHTMLFONTS = R I B BI CR CI CB CBI S
DEVHTMLFONTSFILES = \
  font/devhtml/R \
  font/devhtml/I \
  font/devhtml/B \
  font/devhtml/BI \
  font/devhtml/CR \
  font/devhtml/CI \
  font/devhtml/CB \
  font/devhtml/CBI \
  font/devhtml/S

DEVHTMLRES = 240
DEVHTMLCPI = 10
DEVHTMLLPI = 6

devhtmlfontdir = $(fontdir)/devhtml
devhtmlfont_DATA = $(DEVHTMLFONTSFILES) font/devhtml/DESC
MOSTLYCLEANFILES += $(DEVHTMLFONTSFILES) font/devhtml/DESC
EXTRA_DIST += \
  font/devhtml/R.proto \
  font/devhtml/DESC.proto \
  font/devhtml/R.in

$(DEVHTMLFONTSFILES): $(devhtml_srcdir)/R.proto
	@echo Making $@
	@$(MKDIR_P) `dirname $@`
	@$(RM) $@
	@$(SHELL) $(GENFONTSSH) $(devhtml_srcdir)/R.proto \
	 $(DEVHTMLRES) $(DEVHTMLCPI) `basename $@` > $@

font/devhtml/DESC: $(devhtml_srcdir)/DESC.proto
	@echo Making $@
	@$(MKDIR_P) `dirname $@`
	@$(SHELL) $(GENDESCSH) $(devhtml_srcdir)/DESC.proto \
	 $(DEVHTMLRES) $(DEVHTMLCPI) $(DEVHTMLLPI) $(DEVHTMLFONTS) > $@
	@echo "image_generator $(GHOSTSCRIPT)" >> $@