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}
25 ChangeLog.gtk-async-file-chooser \
26 ChangeLog.gtk-printing \
33 po/README.translators \
35 examples/aspectframe/Makefile \
36 examples/aspectframe/aspectframe.c \
39 examples/extract.awk \
41 examples/arrow/Makefile \
42 examples/arrow/arrow.c \
43 examples/base/Makefile \
44 examples/base/base.c \
45 examples/buttonbox/Makefile \
46 examples/buttonbox/buttonbox.c \
47 examples/buttons/Makefile \
48 examples/buttons/buttons.c \
49 examples/buttons/info.xpm \
50 examples/calendar/Makefile \
51 examples/calendar/calendar.c \
52 examples/entry/Makefile \
53 examples/entry/entry.c \
54 examples/eventbox/Makefile \
55 examples/eventbox/eventbox.c \
56 examples/gtkdial/Makefile \
57 examples/gtkdial/dial_test.c \
58 examples/gtkdial/gtkdial.c \
59 examples/gtkdial/gtkdial.h \
60 examples/helloworld/Makefile \
61 examples/helloworld/helloworld.c \
62 examples/helloworld2/Makefile \
63 examples/helloworld2/helloworld2.c \
64 examples/label/Makefile \
65 examples/label/label.c \
66 examples/menu/Makefile \
67 examples/menu/menu.c \
68 examples/notebook/Makefile \
69 examples/notebook/notebook.c \
70 examples/packbox/Makefile \
71 examples/packbox/packbox.c \
72 examples/paned/Makefile \
73 examples/paned/paned.c \
74 examples/progressbar/Makefile \
75 examples/progressbar/progressbar.c \
76 examples/radiobuttons/Makefile \
77 examples/radiobuttons/radiobuttons.c \
78 examples/rangewidgets/Makefile \
79 examples/rangewidgets/rangewidgets.c \
80 examples/rulers/Makefile \
81 examples/rulers/rulers.c \
82 examples/scribble-simple/Makefile \
83 examples/scribble-simple/scribble-simple.c \
84 examples/scribble-xinput/Makefile \
85 examples/scribble-xinput/scribble-xinput.c \
86 examples/scrolledwin/Makefile \
87 examples/scrolledwin/scrolledwin.c \
88 examples/selection/Makefile \
89 examples/selection/gettargets.c \
90 examples/selection/setselection.c \
91 examples/statusbar/Makefile \
92 examples/statusbar/statusbar.c \
93 examples/table/Makefile \
94 examples/table/table.c \
95 examples/tictactoe/Makefile \
96 examples/tictactoe/tictactoe.c \
97 examples/tictactoe/tictactoe.h \
98 examples/tictactoe/ttt_test.c \
99 examples/wheelbarrow/Makefile \
100 examples/wheelbarrow/wheelbarrow.c \
101 examples/fixed/fixed.c \
102 examples/fixed/Makefile \
103 examples/frame/frame.c \
104 examples/frame/Makefile \
105 examples/spinbutton/spinbutton.c \
106 examples/spinbutton/Makefile \
107 examples/find-examples.sh
108 MAINTAINERCLEANFILES = \
111 $(srcdir)/aclocal.m4 \
112 $(srcdir)/autoscan.log \
114 $(srcdir)/config.guess \
115 $(srcdir)/config.h.in \
116 $(srcdir)/config.sub \
117 $(srcdir)/configure.scan \
119 $(srcdir)/install-sh \
120 $(srcdir)/ltmain.sh \
122 $(srcdir)/mkinstalldirs \
124 $(srcdir)/xmldocs.make \
125 $(srcdir)/gtk-doc.make \
126 $(srcdir)/ChangeLog \
127 `find "$(srcdir)" -type f -name Makefile.in -print`
129 GDKTARGET=@gdktarget@
131 ## Copy .pc files to target-specific names
132 gtk+-$(GDKTARGET)-3.0.pc: gtk+-3.0.pc
133 rm -f gtk+-$(GDKTARGET)-3.0.pc && \
134 cp gtk+-3.0.pc gtk+-$(GDKTARGET)-3.0.pc
136 gdk-$(GDKTARGET)-3.0.pc: gdk-3.0.pc
137 rm -f gdk-$(GDKTARGET)-3.0.pc && \
138 cp gdk-3.0.pc gdk-$(GDKTARGET)-3.0.pc
140 gtk+-$(GDKTARGET)-3.0-uninstalled.pc: gtk+-3.0-uninstalled.pc
141 rm -f gtk+-$(GDKTARGET)-3.0-uninstalled.pc && \
142 cp gtk+-3.0-uninstalled.pc gtk+-$(GDKTARGET)-3.0-uninstalled.pc
144 gdk-$(GDKTARGET)-3.0-uninstalled.pc: gdk-3.0-uninstalled.pc
145 rm -f gdk-$(GDKTARGET)-3.0-uninstalled.pc && \
146 cp gdk-3.0-uninstalled.pc gdk-$(GDKTARGET)-3.0-uninstalled.pc
148 pkgconfigdir = $(libdir)/pkgconfig
149 pkgconfig_DATA = gdk-$(GDKTARGET)-3.0.pc gtk+-$(GDKTARGET)-3.0.pc gail-3.0.pc
152 pkgconfig_DATA += gtk+-unix-print-3.0.pc
156 gtk+-unix-print-3.0.pc \
157 gtk+-$(GDKTARGET)-3.0.pc \
158 gdk-$(GDKTARGET)-3.0.pc \
160 gtk+-$(GDKTARGET)-3.0-uninstalled.pc \
161 gdk-$(GDKTARGET)-3.0-uninstalled.pc \
162 gail-3.0-uninstalled.pc \
166 if test "$(srcdir)" = "."; then :; else \
172 @if test -d "$(srcdir)/.git"; then \
173 (GIT_DIR=$(top_srcdir)/.git ./missing --run git log GTK_2_16_0^^.. --stat) | fmt --split-only > $@.tmp \
176 echo Failed to generate ChangeLog, your ChangeLog may be outdated >&2; \
177 (test -f $@ || echo git-log is required to generate this file >> $@)); \
180 (echo A git checkout and git-log is required to generate ChangeLog >&2 && \
181 echo A git checkout and git-log is required to generate this file >> $@); \
184 ## copy the default target for this platform to gdk-3.0.pc and gtk+-3.0.pc
185 DEFAULT_GDKTARGET=x11
187 (cd $(DESTDIR)$(pkgconfigdir) && \
188 test -f gdk-$(DEFAULT_GDKTARGET)-3.0.pc && \
189 test -f gtk+-$(DEFAULT_GDKTARGET)-3.0.pc && \
190 rm -f gdk-3.0.pc && cp -f gdk-$(DEFAULT_GDKTARGET)-3.0.pc gdk-3.0.pc && \
191 rm -f gtk+-3.0.pc && cp -f gtk+-$(DEFAULT_GDKTARGET)-3.0.pc gtk+-3.0.pc) || \
192 (cd $(DESTDIR)$(pkgconfigdir) && \
193 rm -f gdk-3.0.pc && cp -f gdk-$(GDKTARGET)-3.0.pc gdk-3.0.pc && \
194 rm -f gtk+-3.0.pc && cp -f gtk+-$(GDKTARGET)-3.0.pc gtk+-3.0.pc)
197 rm -f $(DESTDIR)$(pkgconfigdir)/gdk-3.0.pc
198 rm -f $(DESTDIR)$(pkgconfigdir)/gtk+-3.0.pc
201 if test -f $(srcdir)/INSTALL.in && test -f $(srcdir)/README.in ; then \
202 CONFIG_FILES="INSTALL:$(srcdir)/INSTALL.in README:$(srcdir)/README.in" \
204 $(SHELL) config.status \
205 && cp INSTALL README $(distdir) ; \
208 .PHONY: files release sanity snapshot ChangeLog
211 @files=`ls $(DISTFILES) 2> /dev/null `; for p in $$files; do \
214 @for subdir in $(SUBDIRS); do \
215 files=`cd $$subdir; $(MAKE) files | grep -v "make\[[1-9]\]"`; \
216 for file in $$files; do \
217 echo $$subdir/$$file; \
226 ./sanity_check $(VERSION)
230 $(MAKE) dist distdir=$(PACKAGE)-snap`date +"%Y%m%d"`
232 DISTCHECK_CONFIGURE_FLAGS = \
236 --enable-introspection
239 po-properties/Makefile.in.in \
240 po-properties/Makefile.in \
241 po-properties/Makefile \
242 po-properties/*.gmo \
244 po-properties/POTFILES \
245 po-properties/stamp-it \
246 po-properties/.intltool-merge-cache
248 -include $(top_srcdir)/git.mk