]> Pileus Git - ~andy/gtk/blob - Makefile.am
Adapt to uscore-ification of gtktextiterprivate
[~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         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         /bin/rm -f gtk+-$(GDKTARGET)-2.0.pc && \
123         /bin/cp gtk+-2.0.pc gtk+-$(GDKTARGET)-2.0.pc
124
125 gdk-$(GDKTARGET)-2.0.pc: gdk-2.0.pc
126         /bin/rm -f gdk-$(GDKTARGET)-2.0.pc && \
127         /bin/cp gdk-2.0.pc gdk-$(GDKTARGET)-2.0.pc
128
129 pkgconfigdir = $(libdir)/pkgconfig
130 pkgconfig_DATA= gdk-pixbuf-2.0.pc gdk-$(GDKTARGET)-2.0.pc gtk+-$(GDKTARGET)-2.0.pc
131
132 ## symlink gdk-2.0.pc and gtk+-2.0.pc to default target for the platform 
133 DEFAULT_GDKTARGET=x11
134 install-data-local:
135         (cd $(DESTDIR)$(pkgconfigdir) && \
136          $(LN_S) -f gdk-$(DEFAULT_GDKTARGET)-2.0.pc gdk-2.0.pc && \
137          $(LN_S) -f gtk+-$(DEFAULT_GDKTARGET)-2.0.pc gtk+-2.0.pc)
138
139 dist-hook: gtk+.spec
140         if test -e $(srcdir)/INSTALL.in && test -e $(srcdir)/README.in ; then \
141              CONFIG_FILES="INSTALL:$(srcdir)/INSTALL.in README:$(srcdir)/README.in" \
142              CONFIG_HEADERS= \
143              $(SHELL) config.status \
144              && cp INSTALL README $(distdir) ; \
145         fi \
146         && cp gtk+.spec $(distdir)
147
148 m4datadir = $(datadir)/aclocal
149 m4data_DATA = gtk-2.0.m4
150
151 .PHONY: files release sanity snapshot
152
153 files:
154         @files=`ls $(DISTFILES) 2> /dev/null `; for p in $$files; do \
155           echo $$p; \
156         done
157         @for subdir in $(SUBDIRS); do \
158           files=`cd $$subdir; $(MAKE) files | grep -v "make\[[1-9]\]"`; \
159           for file in $$files; do \
160             echo $$subdir/$$file; \
161           done; \
162         done
163
164 release:
165         rm -rf .deps */.deps
166         $(MAKE) distcheck
167
168 sanity:
169         ./sanity_check $(VERSION)
170
171
172 snapshot:
173         $(MAKE) dist distdir=$(PACKAGE)-snap`date +"%Y%m%d"`