adg: make cairo-gobject optional
[adg.git] / Makefile.am
blob3d26165c8067b2f2e8fbc7a979efed75443398fa
1 include $(top_srcdir)/build/Makefile.am.common
3 xml2txt_stylesheet=             $(abs_srcdir)/docs/common/docbook2txt.xsl
4 xml2txt_command=                $(AM_V_GEN)if test -x $(XSLTPROC) ; then : ; else \
5                                   echo ' *WARN  libxslt-1.0.19 or later is required to generate $@' ; \
6                                   touch $@ ; \
7                                   exit 0 ; \
8                                 fi ; \
9                                 $(XSLTPROC) --novalid -o $@ $(xml2txt_stylesheet)
10 ACLOCAL_AMFLAGS=                -I build
11 DISTCHECK_CONFIGURE_FLAGS=      --enable-pango \
12                                 --enable-gtk-doc \
13                                 --enable-test-framework \
14                                 --enable-introspection \
15                                 --with-gtk \
16                                 --with-glade-catalogdir
18 BUILT_SOURCES=                  ChangeLog \
19                                 README \
20                                 NEWS \
21                                 TODO \
22                                 CONTRIBUTING \
23                                 HACKING
25 EXTRA_DIST=                     COPYING \
26                                 ChangeLog-0.2.1 \
27                                 INSTALL \
28                                 THANKS \
29                                 adg.doap \
30                                 build/configure-win32 \
31                                 build/configure-win64 \
32                                 build/adg-header.bmp \
33                                 build/adg-welcome.bmp \
34                                 build/adg.ico \
35                                 build/gschemas.compiled \
36                                 docs/gnu/CONTRIBUTING.xml \
37                                 docs/gnu/HACKING.xml \
38                                 docs/gnu/NEWS.xml \
39                                 docs/gnu/README.xml \
40                                 docs/gnu/TODO.xml \
41                                 $(BUILT_SOURCES)
42 CLEANFILES=                     test-report.xml \
43                                 test-report.html \
44                                 perf-report.xml \
45                                 perf-report.html \
46                                 full-report.xml \
47                                 full-report.html
49 SUBDIRS=                        src
51 if HAVE_GTK
52 SUBDIRS+=                       demo
53 endif
55 SUBDIRS+=                       po \
56                                 po-properties \
57                                 docs
60 if OS_WINDOWS
62 installer:
63         $(MAKENSIS) build/adg.nsi
65 .phony: installer
67 endif
70 # Creating ChangeLog files from git log:
71 # idea stolen from cairo/build/Makefile.am.changelog
72 ChangeLog:
73         $(AM_V_GEN)if test -d "$(abs_srcdir)/.git"; then \
74           ( cd "$(abs_srcdir)" && git log --stat > $@ ) ; \
75         else \
76           echo ' *WARN  A git checkout is required to generate $@' ; \
77           touch $@ ; \
78         fi
80 # Autogenerated text docs
81 README: $(xml2txt_stylesheet) $(abs_srcdir)/docs/gnu/README.xml
82         $(xml2txt_command) $(abs_srcdir)/docs/gnu/README.xml
84 NEWS: $(xml2txt_stylesheet) $(abs_srcdir)/docs/gnu/NEWS.xml
85         $(xml2txt_command) $(abs_srcdir)/docs/gnu/NEWS.xml
87 TODO: $(xml2txt_stylesheet) $(abs_srcdir)/docs/gnu/TODO.xml
88         $(xml2txt_command) $(abs_srcdir)/docs/gnu/TODO.xml
90 CONTRIBUTING: $(xml2txt_stylesheet) $(abs_srcdir)/docs/gnu/CONTRIBUTING.xml
91         $(xml2txt_command) $(abs_srcdir)/docs/gnu/CONTRIBUTING.xml
93 HACKING: $(xml2txt_stylesheet) $(abs_srcdir)/docs/gnu/HACKING.xml
94         $(xml2txt_command) $(abs_srcdir)/docs/gnu/HACKING.xml