The directory organization in the `noto-fonts' repository changed.
[ttfautohint.git] / frontend / Makefile.am
blobfe569f1146163a37738cb103f5631ba1a4786820
1 # Makefile.am
3 # Copyright (C) 2011-2019 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'
22 .h.moc.cpp:
23         $(moc_verbose)$(MOC) \
24           `echo $(QT_CPPFLAGS) | sed 's/-isystem/-I/g'` \
25           $(EXTRA_CPPFLAGS) \
26           $< -o $@
28 DISTCLEANFILES = $(BUILT_SOURCES)
30 AM_CPPFLAGS = -I$(top_srcdir)/lib \
31               -I$(top_builddir)/gnulib/src \
32               -I$(top_srcdir)/gnulib/src \
33               $(FREETYPE_CPPFLAGS)
34 LDADD = $(top_builddir)/lib/libttfautohint.la \
35         $(top_builddir)/lib/libsds.la \
36         $(top_builddir)/lib/libnumberset.la \
37         $(top_builddir)/gnulib/src/libgnu.la \
38         $(LTLIBINTL) \
39         $(LTLIBTHREAD) \
40         $(FREETYPE_LIBS)
42 bin_PROGRAMS = ttfautohint
43 ttfautohint_SOURCES = info.cpp \
44                       info.h \
45                       main.cpp
46 manpages = ttfautohint.1
48 if USE_QT
49   bin_PROGRAMS += ttfautohintGUI
50   ttfautohintGUI_SOURCES = ddlineedit.cpp \
51                            ddlineedit.h \
52                            info.cpp \
53                            info.h \
54                            main.cpp \
55                            maingui.cpp \
56                            maingui.h \
57                            ttlineedit.cpp \
58                            ttlineedit.h
59   nodist_ttfautohintGUI_SOURCES = ddlineedit.moc.cpp \
60                                   maingui.moc.cpp \
61                                   static-plugins.cpp \
62                                   ttlineedit.moc.cpp
64   ttfautohintGUI_CXXFLAGS = $(QT_CXXFLAGS)
65   ttfautohintGUI_LDFLAGS = $(QT_LDFLAGS)
66   ttfautohintGUI_CPPFLAGS = $(AM_CPPFLAGS) \
67                             $(QT_CPPFLAGS) \
68                             -DBUILD_GUI
69   ttfautohintGUI_LDADD = $(LDADD) \
70                          $(QT_LIBS)
72   BUILT_SOURCES = ddlineedit.moc.cpp \
73                   maingui.moc.cpp \
74                   static-plugins.cpp \
75                   ttlineedit.moc.cpp
77   manpages += ttfautohintGUI.1
78 endif
80 if WITH_DOC
81   dist_man_MANS = $(manpages)
82 endif
84 # `ttfautohint.h' holds default values for some options,
85 # `ttfautohint-scripts.' the list of available scripts
86 ttfautohint.1: $(top_srcdir)/frontend/main.cpp \
87                $(top_builddir)/lib/ttfautohint.h \
88                $(top_srcdir)/lib/ttfautohint-scripts.h \
89                $(top_builddir)/.version
90         $(MAKE) $(AM_MAKEFLAGS) ttfautohint$(EXEEXT)
91         $(HELP2MAN) --output=$@ \
92                     --no-info \
93                     --name="add new, auto-generated hints to a TrueType font" \
94                     ./ttfautohint$(EXEEXT)
96 ttfautohintGUI.1: $(top_srcdir)/frontend/main.cpp \
97                   $(top_builddir)/lib/ttfautohint.h \
98                   $(top_srcdir)/lib/ttfautohint-scripts.h \
99                   $(top_builddir)/.version
100         $(MAKE) $(AM_MAKEFLAGS) ttfautohintGUI$(EXEEXT)
101         $(HELP2MAN) --output=$@ \
102                     --no-info \
103                     --name="add new, auto-generated hints to a TrueType font" \
104                     --help-option=--help-all \
105                     ./ttfautohintGUI$(EXEEXT)
107 # end of Makefile.am