1 ## Makefile.am for GTK+
2 include $(top_srcdir)/Makefile.decl
4 SRC_SUBDIRS = gdk-pixbuf gdk gtk modules demos tests perf contrib
5 SUBDIRS = po po-properties $(SRC_SUBDIRS) docs m4macros build
9 ACLOCAL_AMFLAGS = -I m4
26 ChangeLog.gtk-async-file-chooser \
27 ChangeLog.gtk-printing \
34 po/README.translators \
36 examples/aspectframe/Makefile \
37 examples/aspectframe/aspectframe.c \
40 examples/extract.awk \
42 examples/arrow/Makefile \
43 examples/arrow/arrow.c \
44 examples/base/Makefile \
45 examples/base/base.c \
46 examples/buttonbox/Makefile \
47 examples/buttonbox/buttonbox.c \
48 examples/buttons/Makefile \
49 examples/buttons/buttons.c \
50 examples/buttons/info.xpm \
51 examples/calendar/Makefile \
52 examples/calendar/calendar.c \
53 examples/entry/Makefile \
54 examples/entry/entry.c \
55 examples/eventbox/Makefile \
56 examples/eventbox/eventbox.c \
57 examples/gtkdial/Makefile \
58 examples/gtkdial/dial_test.c \
59 examples/gtkdial/gtkdial.c \
60 examples/gtkdial/gtkdial.h \
61 examples/helloworld/Makefile \
62 examples/helloworld/helloworld.c \
63 examples/helloworld2/Makefile \
64 examples/helloworld2/helloworld2.c \
65 examples/label/Makefile \
66 examples/label/label.c \
67 examples/menu/Makefile \
68 examples/menu/menu.c \
69 examples/notebook/Makefile \
70 examples/notebook/notebook.c \
71 examples/packbox/Makefile \
72 examples/packbox/packbox.c \
73 examples/paned/Makefile \
74 examples/paned/paned.c \
75 examples/pixmap/Makefile \
76 examples/pixmap/pixmap.c \
77 examples/progressbar/Makefile \
78 examples/progressbar/progressbar.c \
79 examples/radiobuttons/Makefile \
80 examples/radiobuttons/radiobuttons.c \
81 examples/rangewidgets/Makefile \
82 examples/rangewidgets/rangewidgets.c \
83 examples/rulers/Makefile \
84 examples/rulers/rulers.c \
85 examples/scribble-simple/Makefile \
86 examples/scribble-simple/scribble-simple.c \
87 examples/scribble-xinput/Makefile \
88 examples/scribble-xinput/scribble-xinput.c \
89 examples/scrolledwin/Makefile \
90 examples/scrolledwin/scrolledwin.c \
91 examples/selection/Makefile \
92 examples/selection/gettargets.c \
93 examples/selection/setselection.c \
94 examples/statusbar/Makefile \
95 examples/statusbar/statusbar.c \
96 examples/table/Makefile \
97 examples/table/table.c \
98 examples/tictactoe/Makefile \
99 examples/tictactoe/tictactoe.c \
100 examples/tictactoe/tictactoe.h \
101 examples/tictactoe/ttt_test.c \
102 examples/wheelbarrow/Makefile \
103 examples/wheelbarrow/wheelbarrow.c \
104 examples/fixed/fixed.c \
105 examples/fixed/Makefile \
106 examples/frame/frame.c \
107 examples/frame/Makefile \
108 examples/spinbutton/spinbutton.c \
109 examples/spinbutton/Makefile \
110 examples/find-examples.sh
111 MAINTAINERCLEANFILES = \
114 $(srcdir)/aclocal.m4 \
115 $(srcdir)/autoscan.log \
117 $(srcdir)/config.guess \
118 $(srcdir)/config.h.in \
119 $(srcdir)/config.sub \
120 $(srcdir)/configure.scan \
122 $(srcdir)/install-sh \
123 $(srcdir)/ltmain.sh \
125 $(srcdir)/mkinstalldirs \
127 $(srcdir)/xmldocs.make \
128 $(srcdir)/gtk-doc.make \
129 $(srcdir)/ChangeLog \
130 `find "$(srcdir)" -type f -name Makefile.in -print`
132 GDKTARGET=@gdktarget@
134 ## Copy .pc files to target-specific names
135 gtk+-$(GDKTARGET)-2.0.pc: gtk+-2.0.pc
136 rm -f gtk+-$(GDKTARGET)-2.0.pc && \
137 cp gtk+-2.0.pc gtk+-$(GDKTARGET)-2.0.pc
139 gdk-$(GDKTARGET)-2.0.pc: gdk-2.0.pc
140 rm -f gdk-$(GDKTARGET)-2.0.pc && \
141 cp gdk-2.0.pc gdk-$(GDKTARGET)-2.0.pc
143 gtk+-$(GDKTARGET)-2.0-uninstalled.pc: gtk+-2.0-uninstalled.pc
144 rm -f gtk+-$(GDKTARGET)-2.0-uninstalled.pc && \
145 cp gtk+-2.0-uninstalled.pc gtk+-$(GDKTARGET)-2.0-uninstalled.pc
147 gdk-$(GDKTARGET)-2.0-uninstalled.pc: gdk-2.0-uninstalled.pc
148 rm -f gdk-$(GDKTARGET)-2.0-uninstalled.pc && \
149 cp gdk-2.0-uninstalled.pc gdk-$(GDKTARGET)-2.0-uninstalled.pc
151 pkgconfigdir = $(libdir)/pkgconfig
152 pkgconfig_DATA= gdk-pixbuf-2.0.pc gdk-$(GDKTARGET)-2.0.pc gtk+-$(GDKTARGET)-2.0.pc gail.pc
155 pkgconfig_DATA += gtk+-unix-print-2.0.pc
159 gtk+-unix-print-2.0.pc \
160 gtk+-$(GDKTARGET)-2.0.pc \
161 gdk-$(GDKTARGET)-2.0.pc \
163 gtk+-$(GDKTARGET)-2.0-uninstalled.pc \
164 gdk-$(GDKTARGET)-2.0-uninstalled.pc \
165 gail-uninstalled.pc \
169 if test "$(srcdir)" = "."; then :; else \
175 @if test -d "$(srcdir)/.git"; then \
176 (GIT_DIR=$(top_srcdir)/.git ./missing --run git log GTK_2_16_0^^.. --stat) | fmt --split-only > $@.tmp \
179 echo Failed to generate ChangeLog, your ChangeLog may be outdated >&2; \
180 (test -f $@ || echo git-log is required to generate this file >> $@)); \
183 (echo A git checkout and git-log is required to generate ChangeLog >&2 && \
184 echo A git checkout and git-log is required to generate this file >> $@); \
187 ## copy the default target for this platform to gdk-2.0.pc and gtk+-2.0.pc
188 DEFAULT_GDKTARGET=x11
190 (cd $(DESTDIR)$(pkgconfigdir) && \
191 test -f gdk-$(DEFAULT_GDKTARGET)-2.0.pc && \
192 test -f gtk+-$(DEFAULT_GDKTARGET)-2.0.pc && \
193 rm -f gdk-2.0.pc && cp -f gdk-$(DEFAULT_GDKTARGET)-2.0.pc gdk-2.0.pc && \
194 rm -f gtk+-2.0.pc && cp -f gtk+-$(DEFAULT_GDKTARGET)-2.0.pc gtk+-2.0.pc) || \
195 (cd $(DESTDIR)$(pkgconfigdir) && \
196 rm -f gdk-2.0.pc && cp -f gdk-$(GDKTARGET)-2.0.pc gdk-2.0.pc && \
197 rm -f gtk+-2.0.pc && cp -f gtk+-$(GDKTARGET)-2.0.pc gtk+-2.0.pc)
200 rm -f $(DESTDIR)$(pkgconfigdir)/gdk-2.0.pc
201 rm -f $(DESTDIR)$(pkgconfigdir)/gtk+-2.0.pc
204 if test -f $(srcdir)/INSTALL.in && test -f $(srcdir)/README.in ; then \
205 CONFIG_FILES="INSTALL:$(srcdir)/INSTALL.in README:$(srcdir)/README.in" \
207 $(SHELL) config.status \
208 && cp INSTALL README $(distdir) ; \
211 .PHONY: files release sanity snapshot ChangeLog
214 @files=`ls $(DISTFILES) 2> /dev/null `; for p in $$files; do \
217 @for subdir in $(SUBDIRS); do \
218 files=`cd $$subdir; $(MAKE) files | grep -v "make\[[1-9]\]"`; \
219 for file in $$files; do \
220 echo $$subdir/$$file; \
229 ./sanity_check $(VERSION)
233 $(MAKE) dist distdir=$(PACKAGE)-snap`date +"%Y%m%d"`
235 DISTCHECK_CONFIGURE_FLAGS = --enable-gtk-doc --enable-man --disable-rebuilds --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