]> git.lyx.org Git - features.git/blobdiff - src/frontends/xforms/forms/Makefile.am
Replace LString.h with support/std_string.h,
[features.git] / src / frontends / xforms / forms / Makefile.am
index c9104d071c9f8519a8336f15b1ac1e800842919d..8a835f6b8b32048b93fa1708405f2a0decc1ee81 100644 (file)
@@ -1,18 +1,25 @@
 include $(top_srcdir)/config/common.am
 
-SHELL = /bin/sh
+MAINTAINERCLEANFILES += *.C *.h *.c
 
-SUFFIXES = .fd
+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..
+
+noinst_LTLIBRARIES = libfdesign.la
 
 SRCS =  form_aboutlyx.fd \
        form_bibitem.fd \
        form_bibtex.fd \
-       form_bibtex.fd \
        form_browser.fd \
+       form_branch.fd \
+       form_changes.fd \
        form_character.fd \
        form_citation.fd \
+       form_colorpicker.fd \
        form_document.fd \
-       form_error.fd \
+       form_errorlist.fd \
        form_ert.fd \
        form_external.fd \
        form_filedialog.fd \
@@ -20,14 +27,13 @@ SRCS =  form_aboutlyx.fd \
        form_forks.fd \
        form_graphics.fd \
        form_include.fd \
-       form_index.fd \
-       form_maths_deco.fd \
        form_maths_delim.fd \
        form_maths_matrix.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 \
        form_preferences.fd \
@@ -39,30 +45,22 @@ SRCS =  form_aboutlyx.fd \
        form_tabular.fd \
        form_tabular_create.fd \
        form_texinfo.fd \
+       form_text.fd \
        form_thesaurus.fd \
        form_toc.fd \
-       form_url.fd
-
-OBJS = $(SRCS:.fd=.C)
+       form_url.fd \
+       form_wrap.fd
 
-#all:
-#      @echo "This is a makefile intended for the maintainer only."
-#      @echo "Only run it if you are absolutely sure about what you"
-#      @echo "are doing."
+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
 
-test: clean $(OBJS)
-
-updatesrc: test
-       for fil in *.C *.h; \
-       do cmp -s $$fil ../$$fil || mv $$fil ..; \
-       done
-       rm -f *.[hHcC] *.bak
-
-.fd.C:
-       ${SHELL} ./fdfix.sh $<
-
-clean-local:
-       rm -f *.[hHcC] *.bak fdfixc_modified.sed
+# These are used to generate the .[Ch] files from the .fd ones.
+SHELL = /bin/sh
+SCRIPT = $(srcdir)/fdfix.sh
+SUFFIXES = .fd
 
-distclean-local:
-       rm -f *.orig *.rej *~
+%.C: %.fd $(srcdir)/fdfix.sh $(srcdir)/fdfix[ch].sed $(srcdir)/tmp_str.sed
+       $(SHELL) $(SCRIPT) $<