1 ## Makefile.am for GTK+
3 SRC_SUBDIRS = gdk-pixbuf gdk gtk modules demos tests contrib
4 SUBDIRS = po $(SRC_SUBDIRS) docs build m4macros
22 po/README.translators \
27 examples/aspectframe/Makefile \
28 examples/aspectframe/aspectframe.c \
31 examples/extract.awk \
33 examples/arrow/Makefile \
34 examples/arrow/arrow.c \
35 examples/base/Makefile \
36 examples/base/base.c \
37 examples/buttonbox/Makefile \
38 examples/buttonbox/buttonbox.c \
39 examples/buttons/Makefile \
40 examples/buttons/buttons.c \
41 examples/buttons/info.xpm \
42 examples/calendar/Makefile \
43 examples/calendar/calendar.c \
44 examples/clist/Makefile \
45 examples/clist/clist.c \
46 examples/entry/Makefile \
47 examples/entry/entry.c \
48 examples/eventbox/Makefile \
49 examples/eventbox/eventbox.c \
50 examples/filesel/Makefile \
51 examples/filesel/filesel.c \
52 examples/gtkdial/Makefile \
53 examples/gtkdial/dial_test.c \
54 examples/gtkdial/gtkdial.c \
55 examples/gtkdial/gtkdial.h \
56 examples/helloworld/Makefile \
57 examples/helloworld/helloworld.c \
58 examples/helloworld2/Makefile \
59 examples/helloworld2/helloworld2.c \
60 examples/label/Makefile \
61 examples/label/label.c \
62 examples/list/Makefile \
63 examples/list/list.c \
64 examples/menu/Makefile \
65 examples/menu/menu.c \
66 examples/menu/itemfactory.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/pixmap/Makefile \
74 examples/pixmap/pixmap.c \
75 examples/progressbar/Makefile \
76 examples/progressbar/progressbar.c \
77 examples/radiobuttons/Makefile \
78 examples/radiobuttons/radiobuttons.c \
79 examples/rangewidgets/Makefile \
80 examples/rangewidgets/rangewidgets.c \
81 examples/rulers/Makefile \
82 examples/rulers/rulers.c \
83 examples/scribble-simple/Makefile \
84 examples/scribble-simple/scribble-simple.c \
85 examples/scribble-xinput/Makefile \
86 examples/scribble-xinput/scribble-xinput.c \
87 examples/scrolledwin/Makefile \
88 examples/scrolledwin/scrolledwin.c \
89 examples/selection/Makefile \
90 examples/selection/gettargets.c \
91 examples/selection/setselection.c \
92 examples/statusbar/Makefile \
93 examples/statusbar/statusbar.c \
94 examples/table/Makefile \
95 examples/table/table.c \
96 examples/text/Makefile \
97 examples/text/text.c \
98 examples/tictactoe/Makefile \
99 examples/tictactoe/tictactoe.c \
100 examples/tictactoe/tictactoe.h \
101 examples/tictactoe/ttt_test.c \
102 examples/tree/Makefile \
103 examples/tree/tree.c \
104 examples/wheelbarrow/Makefile \
105 examples/wheelbarrow/wheelbarrow.c \
106 examples/fixed/fixed.c \
107 examples/fixed/Makefile \
108 examples/frame/frame.c \
109 examples/frame/Makefile \
110 examples/spinbutton/spinbutton.c \
111 examples/spinbutton/Makefile \
112 examples/find-examples.sh
114 GDKTARGET=@gdktarget@
116 ## Copy .pc files to target-specific names
117 gtk+-$(GDKTARGET)-2.0.pc: gtk+-2.0.pc
118 rm -f gtk+-$(GDKTARGET)-2.0.pc && \
119 cp gtk+-2.0.pc gtk+-$(GDKTARGET)-2.0.pc
121 gdk-$(GDKTARGET)-2.0.pc: gdk-2.0.pc
122 rm -f gdk-$(GDKTARGET)-2.0.pc && \
123 cp gdk-2.0.pc gdk-$(GDKTARGET)-2.0.pc
125 gtk+-$(GDKTARGET)-2.0-uninstalled.pc: gtk+-2.0-uninstalled.pc
126 rm -f gtk+-$(GDKTARGET)-2.0-uninstalled.pc && \
127 cp gtk+-2.0-uninstalled.pc gtk+-$(GDKTARGET)-2.0-uninstalled.pc
129 gdk-$(GDKTARGET)-2.0-uninstalled.pc: gdk-2.0-uninstalled.pc
130 rm -f gdk-$(GDKTARGET)-2.0-uninstalled.pc && \
131 cp gdk-2.0-uninstalled.pc gdk-$(GDKTARGET)-2.0-uninstalled.pc
133 pkgconfigdir = $(libdir)/pkgconfig
134 pkgconfig_DATA= gdk-pixbuf-2.0.pc gdk-$(GDKTARGET)-2.0.pc gtk+-$(GDKTARGET)-2.0.pc
137 gtk+-$(GDKTARGET)-2.0.pc \
138 gdk-$(GDKTARGET)-2.0.pc \
139 gtk+-$(GDKTARGET)-2.0-uninstalled.pc \
140 gdk-$(GDKTARGET)-2.0-uninstalled.pc
142 ## copy the default target for this platform to gdk-2.0.pc and gtk+-2.0.pc
143 DEFAULT_GDKTARGET=x11
145 (cd $(DESTDIR)$(pkgconfigdir) && \
146 test -f gdk-$(DEFAULT_GDKTARGET)-2.0.pc && \
147 test -f gtk+-$(DEFAULT_GDKTARGET)-2.0.pc && \
148 rm -f gdk-2.0.pc && cp -f gdk-$(DEFAULT_GDKTARGET)-2.0.pc gdk-2.0.pc && \
149 rm -f gtk+-2.0.pc && cp -f gtk+-$(DEFAULT_GDKTARGET)-2.0.pc gtk+-2.0.pc) || \
150 (cd $(DESTDIR)$(pkgconfigdir) && \
151 rm -f gdk-2.0.pc && cp -f gdk-$(GDKTARGET)-2.0.pc gdk-2.0.pc && \
152 rm -f gtk+-2.0.pc && cp -f gtk+-$(GDKTARGET)-2.0.pc gtk+-2.0.pc)
155 if test -f $(srcdir)/INSTALL.in && test -f $(srcdir)/README.in ; then \
156 CONFIG_FILES="INSTALL:$(srcdir)/INSTALL.in README:$(srcdir)/README.in" \
158 $(SHELL) config.status \
159 && cp INSTALL README $(distdir) ; \
161 && cp gtk+.spec $(distdir)
163 .PHONY: files release sanity snapshot
166 @files=`ls $(DISTFILES) 2> /dev/null `; for p in $$files; do \
169 @for subdir in $(SUBDIRS); do \
170 files=`cd $$subdir; $(MAKE) files | grep -v "make\[[1-9]\]"`; \
171 for file in $$files; do \
172 echo $$subdir/$$file; \
181 ./sanity_check $(VERSION)
185 $(MAKE) dist distdir=$(PACKAGE)-snap`date +"%Y%m%d"`
188 # This is a version of the automake-1.4 distcheck rule modified
189 # to pass --enable-gtk-doc to ./configure
193 GZIP=$(GZIP_ENV) $(TAR) zxf $(distdir).tar.gz
194 mkdir $(distdir)/=build
195 mkdir $(distdir)/=inst
196 dc_install_base=`cd $(distdir)/=inst && pwd`; \
197 cd $(distdir)/=build \
198 && ../configure --srcdir=.. --prefix=$$dc_install_base --enable-gtk-doc \
199 && $(MAKE) $(AM_MAKEFLAGS) \
200 && $(MAKE) $(AM_MAKEFLAGS) dvi \
201 && $(MAKE) $(AM_MAKEFLAGS) check \
202 && $(MAKE) $(AM_MAKEFLAGS) install \
203 && $(MAKE) $(AM_MAKEFLAGS) installcheck \
204 && $(MAKE) $(AM_MAKEFLAGS) dist
206 @banner="$(distdir).tar.gz is ready for distribution"; \
207 dashes=`echo "$$banner" | sed s/./=/g`; \