]> Pileus Git - ~andy/gtk/blob - Makefile.am
marshaller fixes.
[~andy/gtk] / Makefile.am
1 ## Makefile.am for GTK+
2
3 SRC_SUBDIRS = gdk-pixbuf gdk modules gtk demos contrib
4 SUBDIRS = po $(SRC_SUBDIRS) docs build
5
6 # require automake 1.4
7 AUTOMAKE_OPTIONS = 1.4
8
9 EXTRA_DIST =                    \
10         HACKING                 \
11         gtk+.spec.in            \
12         gtk-2.0.m4              \
13         makecopyright           \
14         TODO                    \
15         TODO.xml                \
16         NEWS.pre-1-0            \
17         ChangeLog.pre-1-0       \
18         ChangeLog.pre-1-2       \
19         README.cvs-commits      \
20         README.win32            \
21         README.nanox            \
22         config.h.win32          \
23         intl/libgettext.h       \
24         intl/po2tbl.sed.in      \
25         po/README.tools         \
26         po/README.translators   \
27         po/desk.pl              \
28         po/makefile.mingw       \
29         po/update.pl            \
30         examples/aspectframe/Makefile  \
31         examples/aspectframe/aspectframe.c  \
32         examples/Makefile  \
33         examples/README.1ST  \
34         examples/extract.awk  \
35         examples/extract.sh  \
36         examples/arrow/Makefile \
37         examples/arrow/arrow.c  \
38         examples/base/Makefile  \
39         examples/base/base.c  \
40         examples/buttonbox/Makefile \
41         examples/buttonbox/buttonbox.c  \
42         examples/buttons/Makefile  \
43         examples/buttons/buttons.c  \
44         examples/buttons/info.xpm  \
45         examples/calendar/Makefile  \
46         examples/calendar/calendar.c  \
47         examples/clist/Makefile  \
48         examples/clist/clist.c  \
49         examples/entry/Makefile  \
50         examples/entry/entry.c  \
51         examples/eventbox/Makefile  \
52         examples/eventbox/eventbox.c  \
53         examples/filesel/Makefile  \
54         examples/filesel/filesel.c  \
55         examples/gtkdial/Makefile  \
56         examples/gtkdial/dial_test.c  \
57         examples/gtkdial/gtkdial.c  \
58         examples/gtkdial/gtkdial.h  \
59         examples/helloworld/Makefile  \
60         examples/helloworld/helloworld.c  \
61         examples/helloworld2/Makefile  \
62         examples/helloworld2/helloworld2.c  \
63         examples/label/Makefile \
64         examples/label/label.c  \
65         examples/list/Makefile  \
66         examples/list/list.c  \
67         examples/menu/Makefile  \
68         examples/menu/menu.c  \
69         examples/menu/itemfactory.c  \
70         examples/notebook/Makefile  \
71         examples/notebook/notebook.c  \
72         examples/packbox/Makefile  \
73         examples/packbox/packbox.c  \
74         examples/packer/Makefile  \
75         examples/packer/pack.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 pkgconfigdir = $(libdir)/pkgconfig
131 pkgconfig_DATA= gdk-pixbuf-2.0.pc gdk-$(GDKTARGET)-2.0.pc gtk+-$(GDKTARGET)-2.0.pc
132
133 ## symlink gdk-2.0.pc and gtk+-2.0.pc to default target for the platform 
134 DEFAULT_GDKTARGET=x11
135 install-data-local:
136         (cd $(DESTDIR)$(pkgconfigdir) && \
137          $(LN_S) -f gdk-$(DEFAULT_GDKTARGET)-2.0.pc gdk-2.0.pc && \
138          $(LN_S) -f gtk+-$(DEFAULT_GDKTARGET)-2.0.pc gtk+-2.0.pc)
139
140 dist-hook: gtk+.spec
141         if test -e $(srcdir)/INSTALL.in && test -e $(srcdir)/README.in ; then \
142              CONFIG_FILES="INSTALL:$(srcdir)/INSTALL.in README:$(srcdir)/README.in" \
143              CONFIG_HEADERS= \
144              $(SHELL) config.status \
145              && cp INSTALL README $(distdir) ; \
146         fi \
147         && cp gtk+.spec $(distdir)
148
149 m4datadir = $(datadir)/aclocal
150 m4data_DATA = gtk-2.0.m4
151
152 bin_SCRIPTS=gtk-config-2.0
153 BUILT_SOURCES=gtk-config-2.0
154 gtk-config-2.0: gtk-config-2.0.in
155
156 .PHONY: files release sanity snapshot
157
158 files:
159         @files=`ls $(DISTFILES) 2> /dev/null `; for p in $$files; do \
160           echo $$p; \
161         done
162         @for subdir in $(SUBDIRS); do \
163           files=`cd $$subdir; $(MAKE) files | grep -v "make\[[1-9]\]"`; \
164           for file in $$files; do \
165             echo $$subdir/$$file; \
166           done; \
167         done
168
169 release:
170         rm -rf .deps */.deps
171         $(MAKE) distcheck
172
173 sanity:
174         ./sanity_check $(VERSION)
175
176
177 snapshot:
178         $(MAKE) dist distdir=$(PACKAGE)-snap`date +"%Y%m%d"`