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