b8f642f006a045038e65dd3324fdec738511495d
[platform/upstream/groff.git] / font / devutf8 / devutf8.am
1 # Copyright (C) 2014-2020 Free Software Foundation, Inc.
2 #
3 # This file is part of 'groff'.
4 #
5 # 'groff' is free software; you can redistribute it and/or modify it
6 # under the terms of the GNU General Public License as published by
7 # the Free Software Foundation, either version 3 of the License, or
8 # (at your option) any later version.
9 #
10 # 'groff' is distributed in the hope that it will be useful, but
11 # WITHOUT ANY WARRANTY; without even the implied warranty of
12 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
13 # General Public License for more details.
14 #
15 # You should have received a copy of the GNU General Public License
16 # along with this program.  If not, see <http://www.gnu.org/licenses/>.
17
18 devutf8_srcdir = $(top_srcdir)/font/devutf8
19 DEVUTF8FONTS = R I B BI
20 DEVUTF8FONTSFILES = \
21   font/devutf8/R font/devutf8/I font/devutf8/B font/devutf8/BI
22
23 DEVUTF8RES = 240
24 DEVUTF8CPI = 10
25 DEVUTF8LPI = 6
26
27 devutf8fontdir = $(fontdir)/devutf8
28 devutf8font_DATA = $(DEVUTF8FONTSFILES) font/devutf8/DESC
29 MOSTLYCLEANFILES += $(DEVUTF8FONTSFILES) font/devutf8/DESC
30 EXTRA_DIST += \
31   font/devutf8/R.proto \
32   font/devutf8/DESC.proto \
33   font/devutf8/NOTES \
34   font/devutf8/R.in
35
36 $(DEVUTF8FONTSFILES): $(devutf8_srcdir)/R.proto
37         $(AM_V_GEN)$(MKDIR_P) `dirname $@` \
38         && $(RM) $@ \
39         && $(SHELL) $(GENFONTSSH) $(devutf8_srcdir)/R.proto \
40           $(DEVUTF8RES) $(DEVUTF8CPI) `basename $@` >$@
41
42 font/devutf8/DESC: $(devutf8_srcdir)/DESC.proto
43         $(AM_V_GEN)$(MKDIR_P) `dirname $@` \
44         && $(SHELL) $(GENDESCSH) $(devutf8_srcdir)/DESC.proto \
45           $(DEVUTF8RES) $(DEVUTF8CPI) $(DEVUTF8LPI) $(DEVUTF8FONTS) >$@
46
47 # (UTF-8-encoded) text documents to be produced by troff should depend
48 # on this stamp file to ensure that grotty's device and font description
49 # files are available.
50 MOSTLYCLEANFILES += font/devutf8/stamp
51 font/devutf8/stamp: font/devutf8/DESC $(DEVUTF8FONTSFILES)
52         $(AM_V_at)>$@
53
54
55 # Local Variables:
56 # mode: makefile-automake
57 # fill-column: 72
58 # End:
59 # vim: set autoindent filetype=automake textwidth=72: