build: corrected installed vs uninstalled behavior
[adg.git] / Makefile.am
blob1222f830d374526f71ae35b1432d2fe6b87dfcf1
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                                 docs/gnu/CONTRIBUTING.xml \
36                                 docs/gnu/HACKING.xml \
37                                 docs/gnu/NEWS.xml \
38                                 docs/gnu/README.xml \
39                                 docs/gnu/TODO.xml \
40                                 $(BUILT_SOURCES)
41 CLEANFILES=                     test-report.xml \
42                                 test-report.html \
43                                 perf-report.xml \
44                                 perf-report.html \
45                                 full-report.xml \
46                                 full-report.html
48 SUBDIRS=                        src \
49                                 po \
50                                 po-properties \
51                                 docs
53 if HAVE_GTK
54 SUBDIRS+=                       demo
55 endif
58 # Creating ChangeLog files from git log:
59 # idea stolen from cairo/build/Makefile.am.changelog
60 ChangeLog:
61         $(AM_V_GEN)if test -d "$(abs_srcdir)/.git"; then \
62           ( cd "$(abs_srcdir)" && git log --stat > $@ ) ; \
63         else \
64           echo ' *WARN  A git checkout is required to generate $@' ; \
65           touch $@ ; \
66         fi
68 # Autogenerated text docs
69 README: $(xml2txt_stylesheet) $(abs_srcdir)/docs/gnu/README.xml
70         $(xml2txt_command) $(abs_srcdir)/docs/gnu/README.xml
72 NEWS: $(xml2txt_stylesheet) $(abs_srcdir)/docs/gnu/NEWS.xml
73         $(xml2txt_command) $(abs_srcdir)/docs/gnu/NEWS.xml
75 TODO: $(xml2txt_stylesheet) $(abs_srcdir)/docs/gnu/TODO.xml
76         $(xml2txt_command) $(abs_srcdir)/docs/gnu/TODO.xml
78 CONTRIBUTING: $(xml2txt_stylesheet) $(abs_srcdir)/docs/gnu/CONTRIBUTING.xml
79         $(xml2txt_command) $(abs_srcdir)/docs/gnu/CONTRIBUTING.xml
81 HACKING: $(xml2txt_stylesheet) $(abs_srcdir)/docs/gnu/HACKING.xml
82         $(xml2txt_command) $(abs_srcdir)/docs/gnu/HACKING.xml