summaryrefslogtreecommitdiffstats
path: root/font/devhtml/devhtml.am
blob: 76f32326ba52d4daf8d5b45bf648de8ddfd91168 (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
57
58
59
60
61
62
63
64
65
66
67
68
69
# Copyright (C) 2014-2020 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
	$(AM_V_GEN)$(MKDIR_P) `dirname $@` \
	&& $(RM) $@ \
	&& $(SHELL) $(GENFONTSSH) $(devhtml_srcdir)/R.proto \
	  $(DEVHTMLRES) $(DEVHTMLCPI) `basename $@` >$@

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

# HTML documents to be produced by troff should depend on this stamp
# file to ensure that (post-)grohtml's device and font description files
# are available.
MOSTLYCLEANFILES += font/devhtml/stamp
font/devhtml/stamp: font/devhtml/DESC $(DEVHTMLFONTSFILES)
	$(AM_V_at)>$@


# Local Variables:
# mode: makefile-automake
# fill-column: 72
# End:
# vim: set autoindent filetype=automake textwidth=72: