Imported Upstream version 1.22.4
[platform/upstream/groff.git] / font / devhtml / devhtml.am
1 # Copyright (C) 2014-2018 Free Software Foundation, Inc.
2 #
3 # Last update: 13 Aug 2015
4 #
5 # This file is part of 'groff'.
6 #
7 # 'groff' is free software; you can redistribute it and/or modify it
8 # under the terms of the GNU General Public License as published by
9 # the Free Software Foundation, either version 3 of the License, or
10 # (at your option) any later version.
11 #
12 # 'groff' is distributed in the hope that it will be useful, but
13 # WITHOUT ANY WARRANTY; without even the implied warranty of
14 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
15 # General Public License for more details.
16 #
17 # You should have received a copy of the GNU General Public License
18 # along with this program.  If not, see <http://www.gnu.org/licenses/>.
19
20 devhtml_srcdir = $(top_srcdir)/font/devhtml
21 DEVHTMLFONTS = R I B BI CR CI CB CBI S
22 DEVHTMLFONTSFILES = \
23   font/devhtml/R \
24   font/devhtml/I \
25   font/devhtml/B \
26   font/devhtml/BI \
27   font/devhtml/CR \
28   font/devhtml/CI \
29   font/devhtml/CB \
30   font/devhtml/CBI \
31   font/devhtml/S
32
33 DEVHTMLRES = 240
34 DEVHTMLCPI = 10
35 DEVHTMLLPI = 6
36
37 devhtmlfontdir = $(fontdir)/devhtml
38 devhtmlfont_DATA = $(DEVHTMLFONTSFILES) font/devhtml/DESC
39 MOSTLYCLEANFILES += $(DEVHTMLFONTSFILES) font/devhtml/DESC
40 EXTRA_DIST += \
41   font/devhtml/R.proto \
42   font/devhtml/DESC.proto \
43   font/devhtml/R.in
44
45 $(DEVHTMLFONTSFILES): $(devhtml_srcdir)/R.proto
46         $(AM_V_GEN)$(MKDIR_P) `dirname $@` \
47         && $(RM) $@ \
48         && $(SHELL) $(GENFONTSSH) $(devhtml_srcdir)/R.proto \
49              $(DEVHTMLRES) $(DEVHTMLCPI) `basename $@` > $@
50
51 font/devhtml/DESC: $(devhtml_srcdir)/DESC.proto
52         $(AM_V_GEN)$(MKDIR_P) `dirname $@` \
53         && $(SHELL) $(GENDESCSH) $(devhtml_srcdir)/DESC.proto \
54              $(DEVHTMLRES) $(DEVHTMLCPI) $(DEVHTMLLPI) $(DEVHTMLFONTS) > $@ \
55         && echo "image_generator $(GHOSTSCRIPT)" >> $@
56
57
58 ########################################################################
59 # Editor settings
60 ########################################################################
61 #
62 # Local Variables:
63 # mode: makefile-automake
64 # fill-column: 72
65 # End:
66 # vim: set filetype=automake textwidth=72: