]> git.lyx.org Git - lyx.git/blobdiff - src/frontends/xforms/forms/Makefile.am
(Lars) Remove symbolic links on "make distclean".
[lyx.git] / src / frontends / xforms / forms / Makefile.am
index 316f89cd20cef1c61ae3e0364307cae18efa7131..0e66f04a616a244741738f49a27c8cb17da59008 100644 (file)
@@ -1,11 +1,11 @@
 include $(top_srcdir)/config/common.am
 
-MAINTAINERCLEANFILES += *.C *.h *.c
+DISTCLEANFILES += $(SRCS:.fd=.C) $(SRCS:.fd=.h) $(SRCS:.fd=.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_CPPFLAGS = $(PCH_FLAGS) -I$(srcdir)/..  -I$(top_srcdir)/src -I..
 
 noinst_LTLIBRARIES = libfdesign.la
 
@@ -25,7 +25,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 +32,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 \
@@ -50,18 +48,23 @@ SRCS =  form_aboutlyx.fd \
        form_thesaurus.fd \
        form_toc.fd \
        form_url.fd \
+       form_vspace.fd \
        form_wrap.fd
 
 nodist_libfdesign_la_SOURCES = $(SRCS:.fd=.C) $(SRCS:.fd=.h)
 # This is a trick so that the actual .la file never gets build,
 # so we do not need to use diskspace and time for it.
 # It is only getting linked into libxforms.la anyway.
-libfdesign_la_LINK = touch libfdesign.la
+libfdesign_la_LINK = touch libfdesign.la ; echo
 
 # These are used to generate the .[Ch] files from the .fd ones.
 SHELL = /bin/sh
 SCRIPT = $(srcdir)/fdfix.sh
-SUFFIXES = .fd
+SUFFIXES += .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)
+
+distclean-local:
+       [ $(srcdir) != . ] && $(RM) $(SRCS)