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