1 ## Makefile.am for GTK+
2 include $(top_srcdir)/Makefile.decl
4 SRC_SUBDIRS = gdk gtk modules demos tests perf
5 SUBDIRS = po po-properties $(SRC_SUBDIRS) docs m4macros build
7 ACLOCAL_AMFLAGS = -I m4 ${ACLOCAL_FLAGS}
24 ChangeLog.gtk-async-file-chooser \
25 ChangeLog.gtk-printing \
32 po/README.translators \
34 examples/aspectframe/Makefile \
35 examples/aspectframe/aspectframe.c \
38 examples/extract.awk \
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 = \
110 $(srcdir)/aclocal.m4 \
111 $(srcdir)/autoscan.log \
113 $(srcdir)/config.guess \
114 $(srcdir)/config.h.in \
115 $(srcdir)/config.sub \
116 $(srcdir)/configure.scan \
118 $(srcdir)/install-sh \
119 $(srcdir)/ltmain.sh \
121 $(srcdir)/mkinstalldirs \
123 $(srcdir)/xmldocs.make \
124 $(srcdir)/gtk-doc.make \
125 $(srcdir)/ChangeLog \
126 `find "$(srcdir)" -type f -name Makefile.in -print`
128 GDKTARGET=@gdktarget@
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
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
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
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
147 pkgconfigdir = $(libdir)/pkgconfig
148 pkgconfig_DATA = gdk-$(GDKTARGET)-3.0.pc gtk+-$(GDKTARGET)-3.0.pc gail-3.0.pc
151 pkgconfig_DATA += gtk+-unix-print-3.0.pc
155 gtk+-unix-print-3.0.pc \
156 gtk+-$(GDKTARGET)-3.0.pc \
157 gdk-$(GDKTARGET)-3.0.pc \
159 gtk+-$(GDKTARGET)-3.0-uninstalled.pc \
160 gdk-$(GDKTARGET)-3.0-uninstalled.pc \
161 gail-3.0-uninstalled.pc \
165 if test "$(srcdir)" = "."; then :; else \
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 \
175 echo Failed to generate ChangeLog, your ChangeLog may be outdated >&2; \
176 (test -f $@ || echo git-log is required to generate this file >> $@)); \
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 >> $@); \
183 ## copy the default target for this platform to gdk-3.0.pc and gtk+-3.0.pc
184 DEFAULT_GDKTARGET=x11
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)
196 rm -f $(DESTDIR)$(pkgconfigdir)/gdk-3.0.pc
197 rm -f $(DESTDIR)$(pkgconfigdir)/gtk+-3.0.pc
200 if test -f $(srcdir)/INSTALL.in && test -f $(srcdir)/README.in ; then \
201 CONFIG_FILES="INSTALL:$(srcdir)/INSTALL.in README:$(srcdir)/README.in" \
203 $(SHELL) config.status \
204 && cp INSTALL README $(distdir) ; \
207 .PHONY: files release sanity snapshot ChangeLog
210 @files=`ls $(DISTFILES) 2> /dev/null `; for p in $$files; do \
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; \
225 ./sanity_check $(VERSION)
229 $(MAKE) dist distdir=$(PACKAGE)-snap`date +"%Y%m%d"`
231 DISTCHECK_CONFIGURE_FLAGS = \
235 --enable-introspection
238 po-properties/Makefile.in.in \
239 po-properties/Makefile.in \
240 po-properties/Makefile \
241 po-properties/*.gmo \
243 po-properties/POTFILES \
244 po-properties/stamp-it \
245 po-properties/.intltool-merge-cache
247 -include $(top_srcdir)/git.mk