File: Makefile.am

package info (click to toggle)
gtkmathview 0.8.0-5
  • links: PTS, VCS
  • area: main
  • in suites: squeeze
  • size: 7,860 kB
  • ctags: 7,306
  • sloc: cpp: 53,699; xml: 12,660; sh: 8,979; makefile: 1,718; ansic: 1,149; perl: 88
file content (88 lines) | stat: -rw-r--r-- 1,732 bytes parent folder | download | duplicates (6)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88

NULL =

noinst_PROGRAMS =
if COND_GMETADOM
noinst_PROGRAMS += dumpEntitiesTable

entitiesTable.inc: $(CONFIGDIR)/entities-table.xml dumpEntitiesTable
	./dumpEntitiesTable $< >$@

else
entitiesTable.inc:
	cp $(top_srcdir)/auto/entitiesTable.inc_ entitiesTable.inc
endif

dumpEntitiesTable_SOURCES = dumpEntitiesTable.cc
dumpEntitiesTable_LDADD = @DOM_LIBS@

AUTOFILES = \
  token.dec \
  token.def \
  config.dirs \
  entitiesTable.inc \
  $(NULL)

EXTRA_DIST = \
  list-to-dec.xsl \
  list-to-def.xsl \
  token-list.xml \
  stretchy.list \
  Char.hh.in.in \
  Char.hh.in \
  token.dec \
  token.def \
  entitiesTable.inc_ \
  $(NULL)

DISTCLEANFILES = config.dirs entitiesTable.inc Char.hh
MAINTAINERCLEANFILES = token.dec token.def

mathviewdir = $(pkgincludedir)/MathView
mathview_HEADERS = \
  Char.hh

noinst_HEADERS = $(AUTOFILES)

SCRIPTDIR = ../scripts
CONFIGDIR = ../config

if COND_XSLTPROC
XSLTPROC = xsltproc

token.dec: token-list.xml list-to-dec.xsl
	$(XSLTPROC) $(srcdir)/list-to-dec.xsl $< >$@

token.def: token-list.xml list-to-def.xsl
	$(XSLTPROC) $(srcdir)/list-to-def.xsl $< >$@
endif

.PHONY: config.dirs
config.dirs:
	( \
	echo "#define PKGDATADIR \"$(pkgdatadir)\"" >$@.maybe; \
	echo "#define PKGSYSCONFDIR \"$(sysconfdir)/@PACKAGE@\"" >>$@.maybe; \
	if test ! \( -e $@ \); then \
	  mv $@.maybe $@; \
        elif ! diff $@.maybe $@ >/dev/null; then \
	  mv $@.maybe $@; \
	else \
	  rm $@.maybe; \
	fi \
	)

Char.hh: $(top_builddir)/auto/Char.hh.in
	( \
	if test ! \( -e $@ \); then \
	  cp $< $@; \
        elif ! diff $< $@ >/dev/null; then \
	  cp $< $@; \
	fi \
	)

INCLUDES = \
  -I$(top_srcdir)/src/common \
  -I$(top_srcdir)/src/frontend/gmetadom \
  -I$(top_builddir) \
  $(DOM_CFLAGS) \
  $(NULL)