]> Pileus Git - ~andy/gtk/blob - Makefile.am
subst GLIB_GENMARSHAL, GOBJECT_QUERY, GLIB_MKENUMS variables
[~andy/gtk] / Makefile.am
1 ## Makefile.am for GTK+
2
3 SRC_SUBDIRS = gdk-pixbuf gdk gtk modules demos tests contrib
4 SUBDIRS = po $(SRC_SUBDIRS) docs build m4macros
5
6 # require automake 1.4
7 AUTOMAKE_OPTIONS = 1.4
8
9 EXTRA_DIST =                    \
10         HACKING                 \
11         gtk+.spec.in            \
12         makecopyright           \
13         TODO                    \
14         TODO.xml                \
15         NEWS.pre-1-0            \
16         ChangeLog.pre-1-0       \
17         ChangeLog.pre-1-2       \
18         README.cvs-commits      \
19         README.win32            \
20         README.nanox            \
21         config.h.win32          \
22         intl/libgettext.h       \
23         intl/po2tbl.sed.in      \
24         po/README.tools         \
25         po/README.translators   \
26         po/desk.pl              \
27         po/makefile.mingw       \
28         po/update.pl            \
29         examples/aspectframe/Makefile  \
30         examples/aspectframe/aspectframe.c  \
31         examples/Makefile  \
32         examples/README.1ST  \
33         examples/extract.awk  \
34         examples/extract.sh  \
35         examples/arrow/Makefile \
36         examples/arrow/arrow.c  \
37         examples/base/Makefile  \
38         examples/base/base.c  \
39         examples/buttonbox/Makefile \
40         examples/buttonbox/buttonbox.c  \
41         examples/buttons/Makefile  \
42         examples/buttons/buttons.c  \
43         examples/buttons/info.xpm  \
44         examples/calendar/Makefile  \
45         examples/calendar/calendar.c  \
46         examples/clist/Makefile  \
47         examples/clist/clist.c  \
48         examples/entry/Makefile  \
49         examples/entry/entry.c  \
50         examples/eventbox/Makefile  \
51         examples/eventbox/eventbox.c  \
52         examples/filesel/Makefile  \
53         examples/filesel/filesel.c  \
54         examples/gtkdial/Makefile  \
55         examples/gtkdial/dial_test.c  \
56         examples/gtkdial/gtkdial.c  \
57         examples/gtkdial/gtkdial.h  \
58         examples/helloworld/Makefile  \
59         examples/helloworld/helloworld.c  \
60         examples/helloworld2/Makefile  \
61         examples/helloworld2/helloworld2.c  \
62         examples/label/Makefile \
63         examples/label/label.c  \
64         examples/list/Makefile  \
65         examples/list/list.c  \
66         examples/menu/Makefile  \
67         examples/menu/menu.c  \
68         examples/menu/itemfactory.c  \
69         examples/notebook/Makefile  \
70         examples/notebook/notebook.c  \
71         examples/packbox/Makefile  \
72         examples/packbox/packbox.c  \
73         examples/packer/Makefile  \
74         examples/packer/pack.c  \
75         examples/paned/Makefile  \
76         examples/paned/paned.c  \
77         examples/pixmap/Makefile  \
78         examples/pixmap/pixmap.c  \
79         examples/progressbar/Makefile  \
80         examples/progressbar/progressbar.c  \
81         examples/radiobuttons/Makefile  \
82         examples/radiobuttons/radiobuttons.c  \
83         examples/rangewidgets/Makefile  \
84         examples/rangewidgets/rangewidgets.c  \
85         examples/rulers/Makefile  \
86         examples/rulers/rulers.c  \
87         examples/scribble-simple/Makefile  \
88         examples/scribble-simple/scribble-simple.c  \
89         examples/scribble-xinput/Makefile       \
90         examples/scribble-xinput/scribble-xinput.c      \
91         examples/scrolledwin/Makefile  \
92         examples/scrolledwin/scrolledwin.c  \
93         examples/selection/Makefile  \
94         examples/selection/gettargets.c  \
95         examples/selection/setselection.c  \
96         examples/statusbar/Makefile  \
97         examples/statusbar/statusbar.c  \
98         examples/table/Makefile  \
99         examples/table/table.c  \
100         examples/text/Makefile  \
101         examples/text/text.c  \
102         examples/tictactoe/Makefile  \
103         examples/tictactoe/tictactoe.c  \
104         examples/tictactoe/tictactoe.h  \
105         examples/tictactoe/ttt_test.c  \
106         examples/tree/Makefile  \
107         examples/tree/tree.c  \
108         examples/wheelbarrow/Makefile  \
109         examples/wheelbarrow/wheelbarrow.c  \
110         examples/fixed/fixed.c  \
111         examples/fixed/Makefile  \
112         examples/frame/frame.c  \
113         examples/frame/Makefile  \
114         examples/spinbutton/spinbutton.c  \
115         examples/spinbutton/Makefile  \
116         examples/find-examples.sh
117
118 GDKTARGET=@gdktarget@
119
120 ## Copy .pc files to target-specific names
121 gtk+-$(GDKTARGET)-2.0.pc: gtk+-2.0.pc
122         rm -f gtk+-$(GDKTARGET)-2.0.pc && \
123         cp gtk+-2.0.pc gtk+-$(GDKTARGET)-2.0.pc
124
125 gdk-$(GDKTARGET)-2.0.pc: gdk-2.0.pc
126         rm -f gdk-$(GDKTARGET)-2.0.pc && \
127         cp gdk-2.0.pc gdk-$(GDKTARGET)-2.0.pc
128
129 gtk+-$(GDKTARGET)-2.0-uninstalled.pc: gtk+-2.0-uninstalled.pc
130         rm -f gtk+-$(GDKTARGET)-2.0-uninstalled.pc && \
131         cp gtk+-2.0-uninstalled.pc gtk+-$(GDKTARGET)-2.0-uninstalled.pc
132
133 gdk-$(GDKTARGET)-2.0-uninstalled.pc: gdk-2.0-uninstalled.pc
134         rm -f gdk-$(GDKTARGET)-2.0-uninstalled.pc && \
135         cp gdk-2.0-uninstalled.pc gdk-$(GDKTARGET)-2.0-uninstalled.pc
136
137 pkgconfigdir = $(libdir)/pkgconfig
138 pkgconfig_DATA= gdk-pixbuf-2.0.pc gdk-$(GDKTARGET)-2.0.pc gtk+-$(GDKTARGET)-2.0.pc
139
140 ## symlink gdk-2.0.pc and gtk+-2.0.pc to default target for the platform 
141 DEFAULT_GDKTARGET=x11
142 install-data-local:
143         (cd $(DESTDIR)$(pkgconfigdir) && \
144          test -e gdk-$(DEFAULT_GDKTARGET)-2.0.pc && \
145          test -e gtk+-$(DEFAULT_GDKTARGET)-2.0.pc && \
146          $(LN_S) -f gdk-$(DEFAULT_GDKTARGET)-2.0.pc gdk-2.0.pc && \
147          $(LN_S) -f gtk+-$(DEFAULT_GDKTARGET)-2.0.pc gtk+-2.0.pc) || \
148         (cd $(DESTDIR)$(pkgconfigdir) && \
149          $(LN_S) -f gdk-$(GDKTARGET)-2.0.pc gdk-2.0.pc && \
150          $(LN_S) -f gtk+-$(GDKTARGET)-2.0.pc gtk+-2.0.pc)
151
152 dist-hook: gtk+.spec
153         if test -e $(srcdir)/INSTALL.in && test -e $(srcdir)/README.in ; then \
154              CONFIG_FILES="INSTALL:$(srcdir)/INSTALL.in README:$(srcdir)/README.in" \
155              CONFIG_HEADERS= \
156              $(SHELL) config.status \
157              && cp INSTALL README $(distdir) ; \
158         fi \
159         && cp gtk+.spec $(distdir)
160
161 .PHONY: files release sanity snapshot
162
163 files:
164         @files=`ls $(DISTFILES) 2> /dev/null `; for p in $$files; do \
165           echo $$p; \
166         done
167         @for subdir in $(SUBDIRS); do \
168           files=`cd $$subdir; $(MAKE) files | grep -v "make\[[1-9]\]"`; \
169           for file in $$files; do \
170             echo $$subdir/$$file; \
171           done; \
172         done
173
174 release:
175         rm -rf .deps */.deps
176         $(MAKE) distcheck
177
178 sanity:
179         ./sanity_check $(VERSION)
180
181
182 snapshot:
183         $(MAKE) dist distdir=$(PACKAGE)-snap`date +"%Y%m%d"`