]> git.lyx.org Git - features.git/blobdiff - src/frontends/xforms/forms/Makefile.am
More pch work.
[features.git] / src / frontends / xforms / forms / Makefile.am
index d66e319b7748fc92fb53dc332ca6fd98e11fa2f2..f9ce1217610117cc21488195a21a240a38302796 100644 (file)
@@ -1,12 +1,14 @@
 include $(top_srcdir)/config/common.am
 
-MAINTAINERCLEANFILES += *.C *.h *.c
+DISTCLEANFILES += *.C *.h *.c
 
 EXTRA_DIST = fdfixc.sed fdfixh.sed fdfix.sh tmp_str.sed README $(SRCS)
 
 # For (forms_fwd.h, forms_gettext.h) and support/std_string.h, respectively.
 INCLUDES = -I$(srcdir)/..  -I$(top_srcdir)/src -I..
 
+AM_CXXFLAGS = $(PCH_FLAGS)
+
 noinst_LTLIBRARIES = libfdesign.la
 
 SRCS =  form_aboutlyx.fd \
@@ -25,7 +27,6 @@ SRCS =  form_aboutlyx.fd \
        form_external.fd \
        form_filedialog.fd \
        form_float.fd \
-       form_forks.fd \
        form_graphics.fd \
        form_include.fd \
        form_maths_delim.fd \
@@ -33,7 +34,6 @@ SRCS =  form_aboutlyx.fd \
        form_maths_panel.fd \
        form_maths_space.fd \
        form_maths_style.fd \
-       form_minipage.fd \
        form_note.fd \
        form_paragraph.fd \
        form_preamble.fd \
@@ -62,7 +62,8 @@ libfdesign_la_LINK = touch libfdesign.la
 # These are used to generate the .[Ch] files from the .fd ones.
 SHELL = /bin/sh
 SCRIPT = $(srcdir)/fdfix.sh
-SUFFIXES = .fd
+SUFFIX = .fd
 
-%.C: %.fd $(srcdir)/fdfix.sh $(srcdir)/fdfix[ch].sed $(srcdir)/tmp_str.sed
-       $(SHELL) $(SCRIPT) $<
+.fd.C: $(srcdir)/fdfix.sh $(srcdir)/fdfix[ch].sed $(srcdir)/tmp_str.sed
+       { [ $(srcdir) != . ] && [ ! -r $(<F) ] && $(LN_S) $< . ; } || true
+       $(SHELL) $(SCRIPT) $(<F)