]> Pileus Git - ~andy/gtk/blob - Makefile.am
dist all changelogs
[~andy/gtk] / Makefile.am
1 ## Makefile.am for GTK+
2
3 SRC_SUBDIRS = gdk-pixbuf gdk gtk modules demos tests perf contrib
4 SUBDIRS = po po-properties $(SRC_SUBDIRS) docs m4macros
5
6 # require automake 1.4
7 AUTOMAKE_OPTIONS = 1.7
8
9 EXTRA_DIST =                    \
10         HACKING                 \
11         makecopyright           \
12         NEWS.pre-1-0            \
13         ChangeLog.pre-1-0       \
14         ChangeLog.pre-1-2       \
15         ChangeLog.pre-2-0       \
16         ChangeLog.pre-2-2       \
17         ChangeLog.pre-2-4       \
18         ChangeLog.pre-2-6       \
19         ChangeLog.pre-2-8       \
20         README.cvs-commits      \
21         README.win32            \
22         config.h.win32          \
23         makefile.msc    \
24         gtk-zip.sh.in           \
25         sanitize-la.sh          \
26         po/README.translators   \
27         po/po2tbl.sed.in        \
28         examples/aspectframe/Makefile  \
29         examples/aspectframe/aspectframe.c  \
30         examples/Makefile  \
31         examples/README.1ST  \
32         examples/extract.awk  \
33         examples/extract.sh  \
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
114
115 GDKTARGET=@gdktarget@
116
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
121
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
125
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
129
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
133
134 pkgconfigdir = $(libdir)/pkgconfig
135 pkgconfig_DATA= gdk-pixbuf-2.0.pc gdk-$(GDKTARGET)-2.0.pc gtk+-$(GDKTARGET)-2.0.pc
136
137 DISTCLEANFILES =                                \
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
142
143 ## copy the default target for this platform to gdk-2.0.pc and gtk+-2.0.pc
144 DEFAULT_GDKTARGET=x11
145 install-data-hook:
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)
154
155 uninstall-local:
156         rm -f $(DESTDIR)$(pkgconfigdir)/gdk-2.0.pc
157         rm -f $(DESTDIR)$(pkgconfigdir)/gtk+-2.0.pc
158
159 dist-hook:
160         if test -f $(srcdir)/INSTALL.in && test -f $(srcdir)/README.in ; then \
161              CONFIG_FILES="INSTALL:$(srcdir)/INSTALL.in README:$(srcdir)/README.in" \
162              CONFIG_HEADERS= \
163              $(SHELL) config.status \
164              && cp INSTALL README $(distdir) ; \
165         fi
166
167 .PHONY: files release sanity snapshot
168
169 files:
170         @files=`ls $(DISTFILES) 2> /dev/null `; for p in $$files; do \
171           echo $$p; \
172         done
173         @for subdir in $(SUBDIRS); do \
174           files=`cd $$subdir; $(MAKE) files | grep -v "make\[[1-9]\]"`; \
175           for file in $$files; do \
176             echo $$subdir/$$file; \
177           done; \
178         done
179
180 release:
181         rm -rf .deps */.deps
182         $(MAKE) distcheck
183
184 sanity:
185         ./sanity_check $(VERSION)
186
187
188 snapshot:
189         $(MAKE) dist distdir=$(PACKAGE)-snap`date +"%Y%m%d"`
190
191
192 DISTCHECK_CONFIGURE_FLAGS = --enable-gtk-doc