1 SUBDIRS = po examples scripts triggers jhbuild buildbot
3 if DOC_INSTALLATION_ENABLED
7 PATCHES = $(wildcard $(top_srcdir)/patches/*.patch)
8 MODULESETS = $(wildcard $(top_srcdir)/modulesets/*.modules)
10 modulesets/moduleset.dtd \
11 modulesets/moduleset.rnc \
15 desktopdir = $(datadir)/applications
16 desktop_DATA = jhbuild.desktop
18 jhbuild.desktop.in: jhbuild.desktop.in.in
19 $(AM_V_GEN) $(MSGFMT) --desktop --template $< -d $(top_srcdir)/po -o $@
21 # Substitute variables in a Desktop Entry file.
22 jhbuild.desktop: jhbuild.desktop.in
23 $(AM_V_GEN) sed -e 's|@bindir[@]|$(bindir)|g' $< > $@
26 EXTRA_DIST = $(PATCHES) $(MODULESETS) $(DTDS) \
27 modulesets/moduleset.xsl \
29 jhbuild.desktop.in.in jhbuild.desktop.in
34 MAINTAINERCLEANFILES = \
38 $(srcdir)/scripts/debian-python2-postinstall-hook.sh $(DESTDIR)$(bindir)
40 # Check the modulesets for validity.
41 # This is a lower-level check than `jhbuild checkmodulesets` (which analyses the
42 # module graph), and doesn't require jhbuild to be built and installed.
44 # This will fail if xmllint or trang isn't installed.
46 xmllint --noout --dtdvalid $(srcdir)/modulesets/moduleset.dtd $(MODULESETS)
47 trang $(srcdir)/modulesets/moduleset.rnc $(builddir)/moduleset.rng
48 xmllint --noout --relaxng $(builddir)/moduleset.rng $(MODULESETS)
49 rm -f $(builddir)/moduleset.rng
50 .PHONY: check-modulesets
52 check: check-modulesets