common: extract helper from rebase
[gtk-doc.git] / Makefile.am
blobb69045d6fb65aed1c49a5cd3de5f0755474ecff9
1 ## Process this file with automake to produce Makefile.in
2 ACLOCAL_AMFLAGS=-I m4 ${ACLOCAL_FLAGS}
4 SUBDIRS = cmake help tests
6 bin_SCRIPTS = \
7         gtkdoc-check    \
8         gtkdoc-depscan  \
9         gtkdoc-fixxref  \
10         gtkdoc-mkdb     \
11         gtkdoc-mkhtml   \
12         gtkdoc-mkman    \
13         gtkdoc-mkpdf    \
14         gtkdoc-rebase   \
15         gtkdoc-scan     \
16         gtkdoc-scangobj \
17         gtkdocize
19 gtkdocdatadir = $(datadir)/gtk-doc/data
20 gtkdocdata_DATA = \
21         gtkdoc-common.pl        \
22         gtk-doc.xsl             \
23         version-greater-or-equal.xsl \
24         devhelp2.xsd            \
25         devhelp2.xsl            \
26         gtk-doc.make            \
27         gtk-doc.flat.make       \
28         style/home.png                  \
29         style/left.png                  \
30         style/left-insensitive.png              \
31         style/right.png         \
32         style/right-insensitive.png             \
33         style/up.png                    \
34         style/up-insensitive.png                \
35         style/style.css
37 pylibdatadir = $(datadir)/gtk-doc/python/gtkdoc
38 pylibdata_DATA = \
39   gtkdoc/__init__.py \
40   gtkdoc/check.py \
41   gtkdoc/common.py \
42   gtkdoc/config.py \
43   gtkdoc/mkhtml.py \
44   gtkdoc/mkman.py \
45   gtkdoc/mkpdf.py \
46   gtkdoc/rebase.py \
47   gtkdoc/scan.py \
48   gtkdoc/scangobj.py
50 pkgconfigdir = $(datadir)/pkgconfig
51 pkgconfig_DATA = gtk-doc.pc
53 aclocaldir = $(datadir)/aclocal
54 aclocal_DATA = gtk-doc.m4
56 gtk-doc.flat.make: gtk-doc.make
57         @$(SED) -e "s/EXTRA_DIST =/EXTRA_DIST +=/" $< >$@
59 EXTRA_DIST = \
60         MAINTAINERS     \
61         $(gtkdocdata_DATA) \
62         gtk-doc.pc.in   \
63         gtk-doc.m4      \
64         gtk-doc.doap \
65         gtk-doc-fo.xsl     \
66         doc/README            \
67         doc/authors.txt       \
68         doc/gnome.txt         \
69         doc/sections-file.txt \
70         doc/setting-up.txt    \
71         doc/style-guide.txt   \
72         examples/README       \
73         examples/Makefile.am  \
74         tools/docpercentages.pl \
75         tools/gtk-doc.el \
76         COPYING-DOCS
78 CLEANFILES = \
79   gtk-doc.flat.make \
80   gtkdoc-checkc \
81   gtkdoc-depscanc \
82   gtkdoc-mkhtmlc \
83   gtkdoc-mkmanc \
84   gtkdoc-mkpdfc \
85   gtkdoc-rebasec \
86   gtkdoc/__init__.pyc \
87   gtkdoc/check.pyc \
88   gtkdoc/common.pyc \
89   gtkdoc/config.pyc \
90   gtkdoc/mkhtml.pyc \
91   gtkdoc/mkman.pyc \
92   gtkdoc/mkpdf.pyc \
93   gtkdoc/rebase.pyc \
94   gtkdoc/scan.pyc \
95   gtkdoc/scangobj.pyc
97 DISTCLEANFILES = \
98   gtkdoc-check \
99   gtkdoc-common.pl \
100   gtkdoc-depscan \
101   gtkdoc-fixxref \
102   gtkdocize \
103   gtkdoc-mkdb \
104   gtkdoc-mkhtml \
105   gtkdoc-mkman \
106   gtkdoc-mkpdf \
107   gtk-doc.pc \
108   gtkdoc-rebase \
109   gtkdoc-scangobj \
110   gtkdoc-scan \
111   gtkdoc/config.py
113 MAINTAINERCLEANFILES = \
114         $(GITIGNORE_MAINTAINERCLEANFILES_TOPLEVEL) \
115         $(GITIGNORE_MAINTAINERCLEANFILES_MAKEFILE_IN) \
116         $(GITIGNORE_MAINTAINERCLEANFILES_M4_LIBTOOL) \
117         INSTALL \
118         RELNOTES.txt \
119         ChangeLog-?.?? \
120         gtk-doc-*.tar.xz \
121         build-aux
123 -include $(top_srcdir)/git.mk
125 dist-hook:
126         @if test -d "$(srcdir)/.git"; \
127         then \
128                 echo Creating ChangeLog && \
129                 ( cd "$(top_srcdir)" && \
130                   echo '# Generated by Makefile. Do not edit.'; echo; \
131                   $(top_srcdir)/missing --run git log --stat ) > ChangeLog.tmp \
132                 && mv -f ChangeLog.tmp $(top_distdir)/ChangeLog \
133                 || ( rm -f ChangeLog.tmp ; \
134                   echo Failed to generate ChangeLog >&2 ); \
135         else \
136                 echo A git clone is required to generate a ChangeLog >&2; \
137         fi