Minor.
[ttfautohint.git] / frontend / local.mk
blob7b3b8bf91309dd17ac008ae81f93c3d044ea0f3e
1 # frontend/local.mk
3 # Copyright (C) 2011-2021 by Werner Lemberg.
5 # This file is part of the ttfautohint library, and may only be used,
6 # modified, and distributed under the terms given in `COPYING'. By
7 # continuing to use, modify, or distribute this file you indicate that you
8 # have read `COPYING' and understand and accept it fully.
10 # The file `COPYING' mentioned in the previous paragraph is distributed
11 # with the ttfautohint library.
13 SUFFIXES = .moc.cpp .h
15 # Make call to `moc' emit just `MOC'.
16 moc_verbose = $(moc_verbose_@AM_V@)
17 moc_verbose_ = $(moc_verbose_@AM_DEFAULT_V@)
18 moc_verbose_0 = @echo " MOC " $@;
20 # `moc' from Qt5 aborts if unknown command line options are supplied;
21 # in particular, it doesn't recognize `-isystem'.
23 # We must also ensure that `config.h' gets included first.
24 .h.moc.cpp:
25 $(moc_verbose){ \
26 echo '#include <config.h>'; \
27 $(MOC) \
28 `echo $(QT_CPPFLAGS) | sed 's/-isystem/-I/g'` \
29 $(EXTRA_CPPFLAGS) \
30 $< ; \
31 } > $@.tmp
32 @mv $@.tmp $@
34 DISTCLEANFILES += $(BUILT_SOURCES)
36 LDADD = lib/libttfautohint.la \
37 lib/libsds.la \
38 lib/libnumberset.la \
39 gnulib/src/libgnu.la \
40 $(LTLIBINTL) \
41 $(LTLIBTHREAD) \
42 $(FREETYPE_LIBS)
44 bin_PROGRAMS = frontend/ttfautohint
46 frontend_ttfautohint_SOURCES = \
47 frontend/info.cpp \
48 frontend/info.h \
49 frontend/main.cpp
50 frontend_ttfautohint_CPPFLAGS = $(AM_CPPFLAGS) \
51 $(FREETYPE_CPPFLAGS)
52 frontend_ttfautohint_LDADD = $(LDADD)
54 manpages = frontend/ttfautohint.1
56 if USE_QT
57 bin_PROGRAMS += frontend/ttfautohintGUI
59 frontend_ttfautohintGUI_SOURCES = \
60 frontend/ddlineedit.cpp \
61 frontend/ddlineedit.h \
62 frontend/info.cpp \
63 frontend/info.h \
64 frontend/main.cpp \
65 frontend/maingui.cpp \
66 frontend/maingui.h \
67 frontend/ttlineedit.cpp \
68 frontend/ttlineedit.h
69 nodist_frontend_ttfautohintGUI_SOURCES = \
70 frontend/ddlineedit.moc.cpp \
71 frontend/maingui.moc.cpp \
72 frontend/static-plugins.cpp \
73 frontend/ttlineedit.moc.cpp
75 # We want compatibility with Qt < 5.11.
76 frontend_ttfautohintGUI_CXXFLAGS = $(QT_CXXFLAGS) \
77 -Wno-deprecated-declarations
78 frontend_ttfautohintGUI_LDFLAGS = $(QT_LDFLAGS)
79 frontend_ttfautohintGUI_CPPFLAGS = $(AM_CPPFLAGS) \
80 $(FREETYPE_CPPFLAGS) \
81 $(QT_CPPFLAGS) \
82 -DBUILD_GUI
83 frontend_ttfautohintGUI_LDADD = $(LDADD) \
84 $(QT_LIBS)
86 BUILT_SOURCES += frontend/ddlineedit.moc.cpp \
87 frontend/maingui.moc.cpp \
88 frontend/static-plugins.cpp \
89 frontend/ttlineedit.moc.cpp
91 manpages += frontend/ttfautohintGUI.1
92 endif
94 if WITH_DOC
95 dist_man_MANS = $(manpages)
96 endif
98 # `ttfautohint.h' holds default values for some options,
99 # `ttfautohint-scripts.h' the list of available scripts.
100 frontend/ttfautohint.1: frontend/main.cpp \
101 lib/ttfautohint.h.in \
102 lib/ttfautohint-scripts.h \
103 .version \
104 | frontend/ttfautohint$(EXEEXT)
105 $(HELP2MAN) --output=$@ \
106 --no-info \
107 --name="add new, auto-generated hints to a TrueType font" \
108 frontend/ttfautohint$(EXEEXT)
110 frontend/ttfautohintGUI.1: frontend/main.cpp \
111 lib/ttfautohint.h.in \
112 lib/ttfautohint-scripts.h \
113 .version \
114 | frontend/ttfautohintGUI$(EXEEXT)
115 $(HELP2MAN) --output=$@ \
116 --no-info \
117 --name="add new, auto-generated hints to a TrueType font" \
118 --help-option=--help-all \
119 frontend/ttfautohintGUI$(EXEEXT)
121 # end of frontend/local.mk