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
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/clist/Makefile \
53 examples/clist/clist.c \
54 examples/entry/Makefile \
55 examples/entry/entry.c \
56 examples/eventbox/Makefile \
57 examples/eventbox/eventbox.c \
58 examples/filesel/Makefile \
59 examples/filesel/filesel.c \
60 examples/gtkdial/Makefile \
61 examples/gtkdial/dial_test.c \
62 examples/gtkdial/gtkdial.c \
63 examples/gtkdial/gtkdial.h \
64 examples/helloworld/Makefile \
65 examples/helloworld/helloworld.c \
66 examples/helloworld2/Makefile \
67 examples/helloworld2/helloworld2.c \
68 examples/label/Makefile \
69 examples/label/label.c \
70 examples/list/Makefile \
71 examples/list/list.c \
72 examples/menu/Makefile \
73 examples/menu/menu.c \
74 examples/menu/itemfactory.c \
75 examples/notebook/Makefile \
76 examples/notebook/notebook.c \
77 examples/packbox/Makefile \
78 examples/packbox/packbox.c \
79 examples/paned/Makefile \
80 examples/paned/paned.c \
81 examples/pixmap/Makefile \
82 examples/pixmap/pixmap.c \
83 examples/progressbar/Makefile \
84 examples/progressbar/progressbar.c \
85 examples/radiobuttons/Makefile \
86 examples/radiobuttons/radiobuttons.c \
87 examples/rangewidgets/Makefile \
88 examples/rangewidgets/rangewidgets.c \
89 examples/rulers/Makefile \
90 examples/rulers/rulers.c \
91 examples/scribble-simple/Makefile \
92 examples/scribble-simple/scribble-simple.c \
93 examples/scribble-xinput/Makefile \
94 examples/scribble-xinput/scribble-xinput.c \
95 examples/scrolledwin/Makefile \
96 examples/scrolledwin/scrolledwin.c \
97 examples/selection/Makefile \
98 examples/selection/gettargets.c \
99 examples/selection/setselection.c \
100 examples/statusbar/Makefile \
101 examples/statusbar/statusbar.c \
102 examples/table/Makefile \
103 examples/table/table.c \
104 examples/text/Makefile \
105 examples/text/text.c \
106 examples/tictactoe/Makefile \
107 examples/tictactoe/tictactoe.c \
108 examples/tictactoe/tictactoe.h \
109 examples/tictactoe/ttt_test.c \
110 examples/tree/Makefile \
111 examples/tree/tree.c \
112 examples/wheelbarrow/Makefile \
113 examples/wheelbarrow/wheelbarrow.c \
114 examples/fixed/fixed.c \
115 examples/fixed/Makefile \
116 examples/frame/frame.c \
117 examples/frame/Makefile \
118 examples/spinbutton/spinbutton.c \
119 examples/spinbutton/Makefile \
120 examples/find-examples.sh
121 MAINTAINERCLEANFILES = \
124 $(srcdir)/aclocal.m4 \
125 $(srcdir)/autoscan.log \
127 $(srcdir)/config.guess \
128 $(srcdir)/config.h.in \
129 $(srcdir)/config.sub \
130 $(srcdir)/configure.scan \
132 $(srcdir)/install-sh \
133 $(srcdir)/ltmain.sh \
135 $(srcdir)/mkinstalldirs \
137 $(srcdir)/xmldocs.make \
138 $(srcdir)/gtk-doc.make \
139 $(srcdir)/ChangeLog \
140 `find "$(srcdir)" -type f -name Makefile.in -print`
142 GDKTARGET=@gdktarget@
144 ## Copy .pc files to target-specific names
145 gtk+-$(GDKTARGET)-2.0.pc: gtk+-2.0.pc
146 rm -f gtk+-$(GDKTARGET)-2.0.pc && \
147 cp gtk+-2.0.pc gtk+-$(GDKTARGET)-2.0.pc
149 gdk-$(GDKTARGET)-2.0.pc: gdk-2.0.pc
150 rm -f gdk-$(GDKTARGET)-2.0.pc && \
151 cp gdk-2.0.pc gdk-$(GDKTARGET)-2.0.pc
153 gtk+-$(GDKTARGET)-2.0-uninstalled.pc: gtk+-2.0-uninstalled.pc
154 rm -f gtk+-$(GDKTARGET)-2.0-uninstalled.pc && \
155 cp gtk+-2.0-uninstalled.pc gtk+-$(GDKTARGET)-2.0-uninstalled.pc
157 gdk-$(GDKTARGET)-2.0-uninstalled.pc: gdk-2.0-uninstalled.pc
158 rm -f gdk-$(GDKTARGET)-2.0-uninstalled.pc && \
159 cp gdk-2.0-uninstalled.pc gdk-$(GDKTARGET)-2.0-uninstalled.pc
161 pkgconfigdir = $(libdir)/pkgconfig
162 pkgconfig_DATA= gdk-pixbuf-2.0.pc gdk-$(GDKTARGET)-2.0.pc gtk+-$(GDKTARGET)-2.0.pc gail.pc
165 pkgconfig_DATA += gtk+-unix-print-2.0.pc
169 gtk+-unix-print-2.0.pc \
170 gtk+-$(GDKTARGET)-2.0.pc \
171 gdk-$(GDKTARGET)-2.0.pc \
173 gtk+-$(GDKTARGET)-2.0-uninstalled.pc \
174 gdk-$(GDKTARGET)-2.0-uninstalled.pc \
175 gail-uninstalled.pc \
179 if test "$(srcdir)" = "."; then :; else \
185 @if test -d "$(srcdir)/.git"; then \
186 (GIT_DIR=$(top_srcdir)/.git ./missing --run git log GTK_2_16_0^^.. --stat) | fmt --split-only > $@.tmp \
189 echo Failed to generate ChangeLog, your ChangeLog may be outdated >&2; \
190 (test -f $@ || echo git-log is required to generate this file >> $@)); \
193 (echo A git checkout and git-log is required to generate ChangeLog >&2 && \
194 echo A git checkout and git-log is required to generate this file >> $@); \
197 ## copy the default target for this platform to gdk-2.0.pc and gtk+-2.0.pc
198 DEFAULT_GDKTARGET=x11
200 (cd $(DESTDIR)$(pkgconfigdir) && \
201 test -f gdk-$(DEFAULT_GDKTARGET)-2.0.pc && \
202 test -f gtk+-$(DEFAULT_GDKTARGET)-2.0.pc && \
203 rm -f gdk-2.0.pc && cp -f gdk-$(DEFAULT_GDKTARGET)-2.0.pc gdk-2.0.pc && \
204 rm -f gtk+-2.0.pc && cp -f gtk+-$(DEFAULT_GDKTARGET)-2.0.pc gtk+-2.0.pc) || \
205 (cd $(DESTDIR)$(pkgconfigdir) && \
206 rm -f gdk-2.0.pc && cp -f gdk-$(GDKTARGET)-2.0.pc gdk-2.0.pc && \
207 rm -f gtk+-2.0.pc && cp -f gtk+-$(GDKTARGET)-2.0.pc gtk+-2.0.pc)
210 rm -f $(DESTDIR)$(pkgconfigdir)/gdk-2.0.pc
211 rm -f $(DESTDIR)$(pkgconfigdir)/gtk+-2.0.pc
214 if test -f $(srcdir)/INSTALL.in && test -f $(srcdir)/README.in ; then \
215 CONFIG_FILES="INSTALL:$(srcdir)/INSTALL.in README:$(srcdir)/README.in" \
217 $(SHELL) config.status \
218 && cp INSTALL README $(distdir) ; \
221 .PHONY: files release sanity snapshot ChangeLog
224 @files=`ls $(DISTFILES) 2> /dev/null `; for p in $$files; do \
227 @for subdir in $(SUBDIRS); do \
228 files=`cd $$subdir; $(MAKE) files | grep -v "make\[[1-9]\]"`; \
229 for file in $$files; do \
230 echo $$subdir/$$file; \
239 ./sanity_check $(VERSION)
243 $(MAKE) dist distdir=$(PACKAGE)-snap`date +"%Y%m%d"`
245 DISTCHECK_CONFIGURE_FLAGS = --enable-gtk-doc --enable-man --disable-rebuilds
248 po-properties/Makefile.in.in \
249 po-properties/Makefile.in \
250 po-properties/Makefile \
251 po-properties/*.gmo \
253 po-properties/POTFILES \
254 po-properties/stamp-it \
255 po-properties/.intltool-merge-cache
257 -include $(top_srcdir)/git.mk