]> Pileus Git - ~andy/gtk/blob - Makefile.am
Include ChangeLog.pre-2-10 in tarballs as well (seems to be forgotten).
[~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         ChangeLog.pre-2-10      \
21         ChangeLog.gtk-async-file-chooser        \
22         ChangeLog.gtk-printing  \
23         README.cvs-commits      \
24         README.win32            \
25         config.h.win32          \
26         makefile.msc    \
27         gtk-zip.sh.in           \
28         sanitize-la.sh          \
29         po/README.translators   \
30         po/po2tbl.sed.in        \
31         examples/aspectframe/Makefile  \
32         examples/aspectframe/aspectframe.c  \
33         examples/Makefile  \
34         examples/README.1ST  \
35         examples/extract.awk  \
36         examples/extract.sh  \
37         examples/arrow/Makefile \
38         examples/arrow/arrow.c  \
39         examples/base/Makefile  \
40         examples/base/base.c  \
41         examples/buttonbox/Makefile \
42         examples/buttonbox/buttonbox.c  \
43         examples/buttons/Makefile  \
44         examples/buttons/buttons.c  \
45         examples/buttons/info.xpm  \
46         examples/calendar/Makefile  \
47         examples/calendar/calendar.c  \
48         examples/clist/Makefile  \
49         examples/clist/clist.c  \
50         examples/entry/Makefile  \
51         examples/entry/entry.c  \
52         examples/eventbox/Makefile  \
53         examples/eventbox/eventbox.c  \
54         examples/filesel/Makefile  \
55         examples/filesel/filesel.c  \
56         examples/gtkdial/Makefile  \
57         examples/gtkdial/dial_test.c  \
58         examples/gtkdial/gtkdial.c  \
59         examples/gtkdial/gtkdial.h  \
60         examples/helloworld/Makefile  \
61         examples/helloworld/helloworld.c  \
62         examples/helloworld2/Makefile  \
63         examples/helloworld2/helloworld2.c  \
64         examples/label/Makefile \
65         examples/label/label.c  \
66         examples/list/Makefile  \
67         examples/list/list.c  \
68         examples/menu/Makefile  \
69         examples/menu/menu.c  \
70         examples/menu/itemfactory.c  \
71         examples/notebook/Makefile  \
72         examples/notebook/notebook.c  \
73         examples/packbox/Makefile  \
74         examples/packbox/packbox.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 if OS_UNIX
141 pkgconfig_DATA += gtk+-unix-print-2.0.pc
142 endif
143
144 DISTCLEANFILES =                                \
145         gtk+-unix-print-2.0.pc                  \
146         gtk+-$(GDKTARGET)-2.0.pc                \
147         gdk-$(GDKTARGET)-2.0.pc                 \
148         gtk+-$(GDKTARGET)-2.0-uninstalled.pc    \
149         gdk-$(GDKTARGET)-2.0-uninstalled.pc
150
151 ## copy the default target for this platform to gdk-2.0.pc and gtk+-2.0.pc
152 DEFAULT_GDKTARGET=x11
153 install-data-hook:
154         (cd $(DESTDIR)$(pkgconfigdir) && \
155          test -f gdk-$(DEFAULT_GDKTARGET)-2.0.pc && \
156          test -f gtk+-$(DEFAULT_GDKTARGET)-2.0.pc && \
157          rm -f gdk-2.0.pc && cp -f gdk-$(DEFAULT_GDKTARGET)-2.0.pc gdk-2.0.pc && \
158          rm -f gtk+-2.0.pc && cp -f gtk+-$(DEFAULT_GDKTARGET)-2.0.pc gtk+-2.0.pc) || \
159         (cd $(DESTDIR)$(pkgconfigdir) && \
160          rm -f gdk-2.0.pc && cp -f gdk-$(GDKTARGET)-2.0.pc gdk-2.0.pc && \
161          rm -f gtk+-2.0.pc && cp -f gtk+-$(GDKTARGET)-2.0.pc gtk+-2.0.pc)
162
163 uninstall-local:
164         rm -f $(DESTDIR)$(pkgconfigdir)/gdk-2.0.pc
165         rm -f $(DESTDIR)$(pkgconfigdir)/gtk+-2.0.pc
166
167 dist-hook:
168         if test -f $(srcdir)/INSTALL.in && test -f $(srcdir)/README.in ; then \
169              CONFIG_FILES="INSTALL:$(srcdir)/INSTALL.in README:$(srcdir)/README.in" \
170              CONFIG_HEADERS= \
171              $(SHELL) config.status \
172              && cp INSTALL README $(distdir) ; \
173         fi
174
175 .PHONY: files release sanity snapshot
176
177 files:
178         @files=`ls $(DISTFILES) 2> /dev/null `; for p in $$files; do \
179           echo $$p; \
180         done
181         @for subdir in $(SUBDIRS); do \
182           files=`cd $$subdir; $(MAKE) files | grep -v "make\[[1-9]\]"`; \
183           for file in $$files; do \
184             echo $$subdir/$$file; \
185           done; \
186         done
187
188 release:
189         rm -rf .deps */.deps
190         $(MAKE) distcheck
191
192 sanity:
193         ./sanity_check $(VERSION)
194
195
196 snapshot:
197         $(MAKE) dist distdir=$(PACKAGE)-snap`date +"%Y%m%d"`
198
199 DISTCHECK_CONFIGURE_FLAGS = --enable-gtk-doc --enable-man --disable-rebuilds