1 include $(top_srcdir)/config/common.am
3 DISTCLEANFILES += $(SRCS:.fd=.C) $(SRCS:.fd=.h) $(SRCS:.fd=.c)
5 EXTRA_DIST = fdfixc.sed fdfixh.sed fdfix.sh tmp_str.sed README $(SRCS)
7 # For (forms_fwd.h, forms_gettext.h) and support/std_string.h, respectively.
8 AM_CPPFLAGS = -I$(srcdir)/.. -I$(top_srcdir)/src -I..
10 AM_CXXFLAGS = $(PCH_FLAGS)
12 noinst_LTLIBRARIES = libfdesign.la
14 SRCS = form_aboutlyx.fd \
33 form_maths_matrix.fd \
45 form_spellchecker.fd \
47 form_tabular_create.fd \
56 nodist_libfdesign_la_SOURCES = $(SRCS:.fd=.C) $(SRCS:.fd=.h)
57 # This is a trick so that the actual .la file never gets build,
58 # so we do not need to use diskspace and time for it.
59 # It is only getting linked into libxforms.la anyway.
60 libfdesign_la_LINK = touch libfdesign.la
62 # These are used to generate the .[Ch] files from the .fd ones.
64 SCRIPT = $(srcdir)/fdfix.sh
67 .fd.C: $(srcdir)/fdfix.sh $(srcdir)/fdfix[ch].sed $(srcdir)/tmp_str.sed
68 { [ $(srcdir) != . ] && [ ! -r $(<F) ] && $(LN_S) $< . ; } || true
69 $(SHELL) $(SCRIPT) $(<F)