3 # Copyright (C) 2011-2014 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 " $@;
21 $(moc_verbose)$(MOC) $(QT_CPPFLAGS) $(EXTRA_CPPFLAGS) $< -o $@
23 DISTCLEANFILES = $(BUILT_SOURCES)
25 AM_CPPFLAGS = -I$(top_srcdir)/lib \
26 -I$(top_builddir)/gnulib/src \
27 -I$(top_srcdir)/gnulib/src \
29 LDADD = $(top_builddir)/lib/libttfautohint.la \
30 $(top_builddir)/gnulib/src/libgnu.la \
35 bin_PROGRAMS = ttfautohint
36 ttfautohint_SOURCES = info.cpp \
39 manpages = ttfautohint.1
42 bin_PROGRAMS += ttfautohintGUI
43 ttfautohintGUI_SOURCES = ddlineedit.cpp \
52 nodist_ttfautohintGUI_SOURCES = ddlineedit.moc.cpp \
56 ttfautohintGUI_CXXFLAGS = $(QT_CXXFLAGS)
57 ttfautohintGUI_LDFLAGS = $(QT_LDFLAGS)
58 ttfautohintGUI_CPPFLAGS = $(AM_CPPFLAGS) \
61 ttfautohintGUI_LDADD = $(LDADD) \
64 BUILT_SOURCES = ddlineedit.moc.cpp \
68 manpages += ttfautohintGUI.1
72 dist_man_MANS = $(manpages)
75 # `ttfautohint.h' holds default values for some options,
76 # `ttfautohint-scripts.' the list of available scripts
77 ttfautohint.1: $(top_srcdir)/frontend/main.cpp \
78 $(top_srcdir)/lib/ttfautohint.h \
79 $(top_srcdir)/lib/ttfautohint-scripts.h \
80 $(top_srcdir)/.version
81 $(MAKE) $(AM_MAKEFLAGS) ttfautohint$(EXEEXT)
82 $(HELP2MAN) --output=$@ \
84 --name="add new, auto-generated hints to a TrueType font" \
85 ./ttfautohint$(EXEEXT)
87 ttfautohintGUI.1: $(top_srcdir)/frontend/main.cpp \
88 $(top_srcdir)/lib/ttfautohint.h \
89 $(top_srcdir)/lib/ttfautohint-scripts.h \
90 $(top_srcdir)/.version
91 $(MAKE) $(AM_MAKEFLAGS) ttfautohintGUI$(EXEEXT)
92 $(HELP2MAN) --output=$@ \
94 --name="add new, auto-generated hints to a TrueType font" \
95 --help-option=--help-all \
96 ./ttfautohintGUI$(EXEEXT)