]> Pileus Git - ~andy/gtk/blob - Makefile.am
call g_test_init() from gtk_test_init().
[~andy/gtk] / Makefile.am
1 ## Makefile.am for GTK+
2 include $(top_srcdir)/Makefile.decl
3
4 SRC_SUBDIRS = gdk-pixbuf gdk gtk modules demos tests perf contrib
5 SUBDIRS = po po-properties $(SRC_SUBDIRS) docs m4macros
6
7 # require automake 1.4
8 AUTOMAKE_OPTIONS = 1.7
9
10 EXTRA_DIST +=                   \
11         HACKING                 \
12         makecopyright           \
13         NEWS.pre-1-0            \
14         ChangeLog.pre-1-0       \
15         ChangeLog.pre-1-2       \
16         ChangeLog.pre-2-0       \
17         ChangeLog.pre-2-2       \
18         ChangeLog.pre-2-4       \
19         ChangeLog.pre-2-6       \
20         ChangeLog.pre-2-8       \
21         ChangeLog.pre-2-10      \
22         ChangeLog.gtk-async-file-chooser        \
23         ChangeLog.gtk-printing  \
24         README.commits  \
25         README.win32            \
26         config.h.win32          \
27         makefile.msc    \
28         gtk-zip.sh.in           \
29         sanitize-la.sh          \
30         po/README.translators   \
31         po/po2tbl.sed.in        \
32         examples/aspectframe/Makefile  \
33         examples/aspectframe/aspectframe.c  \
34         examples/Makefile  \
35         examples/README.1ST  \
36         examples/extract.awk  \
37         examples/extract.sh  \
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/clist/Makefile  \
50         examples/clist/clist.c  \
51         examples/entry/Makefile  \
52         examples/entry/entry.c  \
53         examples/eventbox/Makefile  \
54         examples/eventbox/eventbox.c  \
55         examples/filesel/Makefile  \
56         examples/filesel/filesel.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/list/Makefile  \
68         examples/list/list.c  \
69         examples/menu/Makefile  \
70         examples/menu/menu.c  \
71         examples/menu/itemfactory.c  \
72         examples/notebook/Makefile  \
73         examples/notebook/notebook.c  \
74         examples/packbox/Makefile  \
75         examples/packbox/packbox.c  \
76         examples/paned/Makefile  \
77         examples/paned/paned.c  \
78         examples/pixmap/Makefile  \
79         examples/pixmap/pixmap.c  \
80         examples/progressbar/Makefile  \
81         examples/progressbar/progressbar.c  \
82         examples/radiobuttons/Makefile  \
83         examples/radiobuttons/radiobuttons.c  \
84         examples/rangewidgets/Makefile  \
85         examples/rangewidgets/rangewidgets.c  \
86         examples/rulers/Makefile  \
87         examples/rulers/rulers.c  \
88         examples/scribble-simple/Makefile  \
89         examples/scribble-simple/scribble-simple.c  \
90         examples/scribble-xinput/Makefile       \
91         examples/scribble-xinput/scribble-xinput.c      \
92         examples/scrolledwin/Makefile  \
93         examples/scrolledwin/scrolledwin.c  \
94         examples/selection/Makefile  \
95         examples/selection/gettargets.c  \
96         examples/selection/setselection.c  \
97         examples/statusbar/Makefile  \
98         examples/statusbar/statusbar.c  \
99         examples/table/Makefile  \
100         examples/table/table.c  \
101         examples/text/Makefile  \
102         examples/text/text.c  \
103         examples/tictactoe/Makefile  \
104         examples/tictactoe/tictactoe.c  \
105         examples/tictactoe/tictactoe.h  \
106         examples/tictactoe/ttt_test.c  \
107         examples/tree/Makefile  \
108         examples/tree/tree.c  \
109         examples/wheelbarrow/Makefile  \
110         examples/wheelbarrow/wheelbarrow.c  \
111         examples/fixed/fixed.c  \
112         examples/fixed/Makefile  \
113         examples/frame/frame.c  \
114         examples/frame/Makefile  \
115         examples/spinbutton/spinbutton.c  \
116         examples/spinbutton/Makefile  \
117         examples/find-examples.sh
118
119 GDKTARGET=@gdktarget@
120
121 ## Copy .pc files to target-specific names
122 gtk+-$(GDKTARGET)-2.0.pc: gtk+-2.0.pc
123         rm -f gtk+-$(GDKTARGET)-2.0.pc && \
124         cp gtk+-2.0.pc gtk+-$(GDKTARGET)-2.0.pc
125
126 gdk-$(GDKTARGET)-2.0.pc: gdk-2.0.pc
127         rm -f gdk-$(GDKTARGET)-2.0.pc && \
128         cp gdk-2.0.pc gdk-$(GDKTARGET)-2.0.pc
129
130 gtk+-$(GDKTARGET)-2.0-uninstalled.pc: gtk+-2.0-uninstalled.pc
131         rm -f gtk+-$(GDKTARGET)-2.0-uninstalled.pc && \
132         cp gtk+-2.0-uninstalled.pc gtk+-$(GDKTARGET)-2.0-uninstalled.pc
133
134 gdk-$(GDKTARGET)-2.0-uninstalled.pc: gdk-2.0-uninstalled.pc
135         rm -f gdk-$(GDKTARGET)-2.0-uninstalled.pc && \
136         cp gdk-2.0-uninstalled.pc gdk-$(GDKTARGET)-2.0-uninstalled.pc
137
138 pkgconfigdir = $(libdir)/pkgconfig
139 pkgconfig_DATA= gdk-pixbuf-2.0.pc gdk-$(GDKTARGET)-2.0.pc gtk+-$(GDKTARGET)-2.0.pc
140
141 if OS_UNIX
142 pkgconfig_DATA += gtk+-unix-print-2.0.pc
143 endif
144
145 DISTCLEANFILES =                                \
146         gtk+-unix-print-2.0.pc                  \
147         gtk+-$(GDKTARGET)-2.0.pc                \
148         gdk-$(GDKTARGET)-2.0.pc                 \
149         gtk+-$(GDKTARGET)-2.0-uninstalled.pc    \
150         gdk-$(GDKTARGET)-2.0-uninstalled.pc
151
152 ## copy the default target for this platform to gdk-2.0.pc and gtk+-2.0.pc
153 DEFAULT_GDKTARGET=x11
154 install-data-hook:
155         (cd $(DESTDIR)$(pkgconfigdir) && \
156          test -f gdk-$(DEFAULT_GDKTARGET)-2.0.pc && \
157          test -f gtk+-$(DEFAULT_GDKTARGET)-2.0.pc && \
158          rm -f gdk-2.0.pc && cp -f gdk-$(DEFAULT_GDKTARGET)-2.0.pc gdk-2.0.pc && \
159          rm -f gtk+-2.0.pc && cp -f gtk+-$(DEFAULT_GDKTARGET)-2.0.pc gtk+-2.0.pc) || \
160         (cd $(DESTDIR)$(pkgconfigdir) && \
161          rm -f gdk-2.0.pc && cp -f gdk-$(GDKTARGET)-2.0.pc gdk-2.0.pc && \
162          rm -f gtk+-2.0.pc && cp -f gtk+-$(GDKTARGET)-2.0.pc gtk+-2.0.pc)
163
164 uninstall-local:
165         rm -f $(DESTDIR)$(pkgconfigdir)/gdk-2.0.pc
166         rm -f $(DESTDIR)$(pkgconfigdir)/gtk+-2.0.pc
167
168 dist-hook:
169         if test -f $(srcdir)/INSTALL.in && test -f $(srcdir)/README.in ; then \
170              CONFIG_FILES="INSTALL:$(srcdir)/INSTALL.in README:$(srcdir)/README.in" \
171              CONFIG_HEADERS= \
172              $(SHELL) config.status \
173              && cp INSTALL README $(distdir) ; \
174         fi
175
176 .PHONY: files release sanity snapshot
177
178 files:
179         @files=`ls $(DISTFILES) 2> /dev/null `; for p in $$files; do \
180           echo $$p; \
181         done
182         @for subdir in $(SUBDIRS); do \
183           files=`cd $$subdir; $(MAKE) files | grep -v "make\[[1-9]\]"`; \
184           for file in $$files; do \
185             echo $$subdir/$$file; \
186           done; \
187         done
188
189 release:
190         rm -rf .deps */.deps
191         $(MAKE) distcheck
192
193 sanity:
194         ./sanity_check $(VERSION)
195
196
197 snapshot:
198         $(MAKE) dist distdir=$(PACKAGE)-snap`date +"%Y%m%d"`
199
200 DISTCHECK_CONFIGURE_FLAGS = --enable-gtk-doc --enable-man --disable-rebuilds