1 2NULL = 3 4noinst_PROGRAMS = 5if COND_GMETADOM 6noinst_PROGRAMS += dumpEntitiesTable 7 8entitiesTable.inc: $(CONFIGDIR)/entities-table.xml dumpEntitiesTable 9 ./dumpEntitiesTable $< >$@ 10 11else 12entitiesTable.inc: 13 cp $(top_srcdir)/auto/entitiesTable.inc_ entitiesTable.inc 14endif 15 16dumpEntitiesTable_SOURCES = dumpEntitiesTable.cc 17dumpEntitiesTable_LDADD = @DOM_LIBS@ 18 19AUTOFILES = \ 20 token.dec \ 21 token.def \ 22 config.dirs \ 23 entitiesTable.inc \ 24 $(NULL) 25 26EXTRA_DIST = \ 27 list-to-dec.xsl \ 28 list-to-def.xsl \ 29 token-list.xml \ 30 stretchy.list \ 31 Char.hh.in.in \ 32 Char.hh.in \ 33 token.dec \ 34 token.def \ 35 entitiesTable.inc_ \ 36 $(NULL) 37 38DISTCLEANFILES = config.dirs entitiesTable.inc Char.hh 39MAINTAINERCLEANFILES = token.dec token.def 40 41mathviewdir = $(pkgincludedir)/MathView 42mathview_HEADERS = \ 43 Char.hh 44 45noinst_HEADERS = $(AUTOFILES) 46 47SCRIPTDIR = ../scripts 48CONFIGDIR = ../config 49 50if COND_XSLTPROC 51XSLTPROC = xsltproc 52 53token.dec: token-list.xml list-to-dec.xsl 54 $(XSLTPROC) $(srcdir)/list-to-dec.xsl $< >$@ 55 56token.def: token-list.xml list-to-def.xsl 57 $(XSLTPROC) $(srcdir)/list-to-def.xsl $< >$@ 58endif 59 60.PHONY: config.dirs 61config.dirs: 62 ( \ 63 echo "#define PKGDATADIR \"$(pkgdatadir)\"" >$@.maybe; \ 64 echo "#define PKGSYSCONFDIR \"$(sysconfdir)/@PACKAGE@\"" >>$@.maybe; \ 65 if test ! \( -e $@ \); then \ 66 mv $@.maybe $@; \ 67 elif ! diff $@.maybe $@ >/dev/null; then \ 68 mv $@.maybe $@; \ 69 else \ 70 rm $@.maybe; \ 71 fi \ 72 ) 73 74Char.hh: $(top_builddir)/auto/Char.hh.in 75 ( \ 76 if test ! \( -e $@ \); then \ 77 cp $< $@; \ 78 elif ! diff $< $@ >/dev/null; then \ 79 cp $< $@; \ 80 fi \ 81 ) 82 83INCLUDES = \ 84 -I$(top_srcdir)/src/common \ 85 -I$(top_srcdir)/src/frontend/gmetadom \ 86 -I$(top_builddir) \ 87 $(DOM_CFLAGS) \ 88 $(NULL) 89