]> Pileus Git - ~andy/gtk/blob - Makefile.am
Complete the removal of examples/pixmap to fix make dist
[~andy/gtk] / Makefile.am
1 ## Makefile.am for GTK+
2 include $(top_srcdir)/Makefile.decl
3
4 SRC_SUBDIRS = gdk gtk modules demos tests perf
5 SUBDIRS = po po-properties $(SRC_SUBDIRS) docs m4macros build
6
7 ACLOCAL_AMFLAGS = -I m4 ${ACLOCAL_FLAGS}
8
9 EXTRA_DIST +=                   \
10         HACKING                 \
11         makecopyright           \
12         NEWS.pre-1-0            \
13         ChangeLog.pre-1-0       \
14         ChangeLog.pre-1-2       \
15         ChangeLog.pre-2-0       \
16         ChangeLog.pre-2-2       \
17         ChangeLog.pre-2-4       \
18         ChangeLog.pre-2-6       \
19         ChangeLog.pre-2-8       \
20         ChangeLog.pre-2-10      \
21         ChangeLog.pre-2-12      \
22         ChangeLog.pre-2-14      \
23         ChangeLog.pre-2-16      \
24         ChangeLog.gtk-async-file-chooser        \
25         ChangeLog.gtk-printing  \
26         README.commits  \
27         README.win32            \
28         config.h.win32          \
29         makefile.msc    \
30         gtk-zip.sh.in           \
31         sanitize-la.sh          \
32         po/README.translators   \
33         po/po2tbl.sed.in        \
34         examples/aspectframe/Makefile  \
35         examples/aspectframe/aspectframe.c  \
36         examples/Makefile  \
37         examples/README.1ST  \
38         examples/extract.awk  \
39         examples/extract.sh  \
40         examples/arrow/Makefile \
41         examples/arrow/arrow.c  \
42         examples/base/Makefile  \
43         examples/base/base.c  \
44         examples/buttonbox/Makefile \
45         examples/buttonbox/buttonbox.c  \
46         examples/buttons/Makefile  \
47         examples/buttons/buttons.c  \
48         examples/buttons/info.xpm  \
49         examples/calendar/Makefile  \
50         examples/calendar/calendar.c  \
51         examples/entry/Makefile  \
52         examples/entry/entry.c  \
53         examples/eventbox/Makefile  \
54         examples/eventbox/eventbox.c  \
55         examples/gtkdial/Makefile  \
56         examples/gtkdial/dial_test.c  \
57         examples/gtkdial/gtkdial.c  \
58         examples/gtkdial/gtkdial.h  \
59         examples/helloworld/Makefile  \
60         examples/helloworld/helloworld.c  \
61         examples/helloworld2/Makefile  \
62         examples/helloworld2/helloworld2.c  \
63         examples/label/Makefile \
64         examples/label/label.c  \
65         examples/menu/Makefile  \
66         examples/menu/menu.c  \
67         examples/notebook/Makefile  \
68         examples/notebook/notebook.c  \
69         examples/packbox/Makefile  \
70         examples/packbox/packbox.c  \
71         examples/paned/Makefile  \
72         examples/paned/paned.c  \
73         examples/progressbar/Makefile  \
74         examples/progressbar/progressbar.c  \
75         examples/radiobuttons/Makefile  \
76         examples/radiobuttons/radiobuttons.c  \
77         examples/rangewidgets/Makefile  \
78         examples/rangewidgets/rangewidgets.c  \
79         examples/rulers/Makefile  \
80         examples/rulers/rulers.c  \
81         examples/scribble-simple/Makefile  \
82         examples/scribble-simple/scribble-simple.c  \
83         examples/scribble-xinput/Makefile       \
84         examples/scribble-xinput/scribble-xinput.c      \
85         examples/scrolledwin/Makefile  \
86         examples/scrolledwin/scrolledwin.c  \
87         examples/selection/Makefile  \
88         examples/selection/gettargets.c  \
89         examples/selection/setselection.c  \
90         examples/statusbar/Makefile  \
91         examples/statusbar/statusbar.c  \
92         examples/table/Makefile  \
93         examples/table/table.c  \
94         examples/tictactoe/Makefile  \
95         examples/tictactoe/tictactoe.c  \
96         examples/tictactoe/tictactoe.h  \
97         examples/tictactoe/ttt_test.c  \
98         examples/wheelbarrow/Makefile  \
99         examples/wheelbarrow/wheelbarrow.c  \
100         examples/fixed/fixed.c  \
101         examples/fixed/Makefile  \
102         examples/frame/frame.c  \
103         examples/frame/Makefile  \
104         examples/spinbutton/spinbutton.c  \
105         examples/spinbutton/Makefile  \
106         examples/find-examples.sh
107 MAINTAINERCLEANFILES = \
108         $(srcdir)/INSTALL \
109         $(srcdir)/README \
110         $(srcdir)/aclocal.m4 \
111         $(srcdir)/autoscan.log \
112         $(srcdir)/compile \
113         $(srcdir)/config.guess \
114         $(srcdir)/config.h.in \
115         $(srcdir)/config.sub \
116         $(srcdir)/configure.scan \
117         $(srcdir)/depcomp \
118         $(srcdir)/install-sh \
119         $(srcdir)/ltmain.sh \
120         $(srcdir)/missing \
121         $(srcdir)/mkinstalldirs \
122         $(srcdir)/omf.make \
123         $(srcdir)/xmldocs.make \
124         $(srcdir)/gtk-doc.make \
125         $(srcdir)/ChangeLog \
126         `find "$(srcdir)" -type f -name Makefile.in -print`
127
128 GDKTARGET=@gdktarget@
129
130 ## Copy .pc files to target-specific names
131 gtk+-$(GDKTARGET)-3.0.pc: gtk+-3.0.pc
132         rm -f gtk+-$(GDKTARGET)-3.0.pc && \
133         cp gtk+-3.0.pc gtk+-$(GDKTARGET)-3.0.pc
134
135 gdk-$(GDKTARGET)-3.0.pc: gdk-3.0.pc
136         rm -f gdk-$(GDKTARGET)-3.0.pc && \
137         cp gdk-3.0.pc gdk-$(GDKTARGET)-3.0.pc
138
139 gtk+-$(GDKTARGET)-3.0-uninstalled.pc: gtk+-3.0-uninstalled.pc
140         rm -f gtk+-$(GDKTARGET)-3.0-uninstalled.pc && \
141         cp gtk+-3.0-uninstalled.pc gtk+-$(GDKTARGET)-3.0-uninstalled.pc
142
143 gdk-$(GDKTARGET)-3.0-uninstalled.pc: gdk-3.0-uninstalled.pc
144         rm -f gdk-$(GDKTARGET)-3.0-uninstalled.pc && \
145         cp gdk-3.0-uninstalled.pc gdk-$(GDKTARGET)-3.0-uninstalled.pc
146
147 pkgconfigdir = $(libdir)/pkgconfig
148 pkgconfig_DATA = gdk-$(GDKTARGET)-3.0.pc gtk+-$(GDKTARGET)-3.0.pc gail-3.0.pc
149
150 if OS_UNIX
151 pkgconfig_DATA += gtk+-unix-print-3.0.pc
152 endif
153
154 DISTCLEANFILES =                                \
155         gtk+-unix-print-3.0.pc                  \
156         gtk+-$(GDKTARGET)-3.0.pc                \
157         gdk-$(GDKTARGET)-3.0.pc                 \
158         gail-3.0.pc                             \
159         gtk+-$(GDKTARGET)-3.0-uninstalled.pc    \
160         gdk-$(GDKTARGET)-3.0-uninstalled.pc     \
161         gail-3.0-uninstalled.pc                 \
162         config.lt
163
164 distclean-local:
165         if test "$(srcdir)" = "."; then :; else \
166                 rm -f ChangeLog; \
167         fi
168
169 ChangeLog:
170         @echo Creating $@
171         @if test -d "$(srcdir)/.git"; then \
172           (GIT_DIR=$(top_srcdir)/.git ./missing --run git log GTK_2_16_0^^.. --stat) | fmt --split-only > $@.tmp \
173           && mv -f $@.tmp $@ \
174           || ($(RM) $@.tmp; \
175               echo Failed to generate ChangeLog, your ChangeLog may be outdated >&2; \
176               (test -f $@ || echo git-log is required to generate this file >> $@)); \
177         else \
178           test -f $@ || \
179           (echo A git checkout and git-log is required to generate ChangeLog >&2 && \
180           echo A git checkout and git-log is required to generate this file >> $@); \
181         fi
182
183 ## copy the default target for this platform to gdk-3.0.pc and gtk+-3.0.pc
184 DEFAULT_GDKTARGET=x11
185 install-data-hook:
186         (cd $(DESTDIR)$(pkgconfigdir) && \
187          test -f gdk-$(DEFAULT_GDKTARGET)-3.0.pc && \
188          test -f gtk+-$(DEFAULT_GDKTARGET)-3.0.pc && \
189          rm -f gdk-3.0.pc && cp -f gdk-$(DEFAULT_GDKTARGET)-3.0.pc gdk-3.0.pc && \
190          rm -f gtk+-3.0.pc && cp -f gtk+-$(DEFAULT_GDKTARGET)-3.0.pc gtk+-3.0.pc) || \
191         (cd $(DESTDIR)$(pkgconfigdir) && \
192          rm -f gdk-3.0.pc && cp -f gdk-$(GDKTARGET)-3.0.pc gdk-3.0.pc && \
193          rm -f gtk+-3.0.pc && cp -f gtk+-$(GDKTARGET)-3.0.pc gtk+-3.0.pc)
194
195 uninstall-local:
196         rm -f $(DESTDIR)$(pkgconfigdir)/gdk-3.0.pc
197         rm -f $(DESTDIR)$(pkgconfigdir)/gtk+-3.0.pc
198
199 dist-hook:
200         if test -f $(srcdir)/INSTALL.in && test -f $(srcdir)/README.in ; then \
201              CONFIG_FILES="INSTALL:$(srcdir)/INSTALL.in README:$(srcdir)/README.in" \
202              CONFIG_HEADERS= \
203              $(SHELL) config.status \
204              && cp INSTALL README $(distdir) ; \
205         fi
206
207 .PHONY: files release sanity snapshot ChangeLog
208
209 files:
210         @files=`ls $(DISTFILES) 2> /dev/null `; for p in $$files; do \
211           echo $$p; \
212         done
213         @for subdir in $(SUBDIRS); do \
214           files=`cd $$subdir; $(MAKE) files | grep -v "make\[[1-9]\]"`; \
215           for file in $$files; do \
216             echo $$subdir/$$file; \
217           done; \
218         done
219
220 release:
221         rm -rf .deps */.deps
222         $(MAKE) distcheck
223
224 sanity:
225         ./sanity_check $(VERSION)
226
227
228 snapshot:
229         $(MAKE) dist distdir=$(PACKAGE)-snap`date +"%Y%m%d"`
230
231 DISTCHECK_CONFIGURE_FLAGS =             \
232                 --enable-gtk-doc        \
233                 --enable-man            \
234                 --disable-rebuilds      \
235                 --enable-introspection
236
237 GITIGNOREFILES = \
238         po-properties/Makefile.in.in \
239         po-properties/Makefile.in \
240         po-properties/Makefile \
241         po-properties/*.gmo \
242         po-properties/*.mo \
243         po-properties/POTFILES \
244         po-properties/stamp-it \
245         po-properties/.intltool-merge-cache
246
247 -include $(top_srcdir)/git.mk