1 ## Makefile.am for GTK+
2 include $(top_srcdir)/Makefile.decl
4 SRC_SUBDIRS = gdk gtk modules demos tests perf examples
5 SUBDIRS = po po-properties $(SRC_SUBDIRS) docs m4macros build
7 ACLOCAL_AMFLAGS = -I m4 ${ACLOCAL_FLAGS}
25 ChangeLog.gtk-async-file-chooser \
26 ChangeLog.gtk-printing \
33 po/README.translators \
36 MAINTAINERCLEANFILES = \
39 $(srcdir)/aclocal.m4 \
40 $(srcdir)/autoscan.log \
42 $(srcdir)/config.guess \
43 $(srcdir)/config.h.in \
44 $(srcdir)/config.sub \
45 $(srcdir)/configure.scan \
47 $(srcdir)/install-sh \
50 $(srcdir)/mkinstalldirs \
52 $(srcdir)/xmldocs.make \
53 $(srcdir)/gtk-doc.make \
55 `find "$(srcdir)" -type f -name Makefile.in -print`
59 ## Copy .pc files to target-specific names
60 gtk+-$(GDKTARGET)-3.0.pc: gtk+-3.0.pc
61 rm -f gtk+-$(GDKTARGET)-3.0.pc && \
62 cp gtk+-3.0.pc gtk+-$(GDKTARGET)-3.0.pc
64 gdk-$(GDKTARGET)-3.0.pc: gdk-3.0.pc
65 rm -f gdk-$(GDKTARGET)-3.0.pc && \
66 cp gdk-3.0.pc gdk-$(GDKTARGET)-3.0.pc
68 gtk+-$(GDKTARGET)-3.0-uninstalled.pc: gtk+-3.0-uninstalled.pc
69 rm -f gtk+-$(GDKTARGET)-3.0-uninstalled.pc && \
70 cp gtk+-3.0-uninstalled.pc gtk+-$(GDKTARGET)-3.0-uninstalled.pc
72 gdk-$(GDKTARGET)-3.0-uninstalled.pc: gdk-3.0-uninstalled.pc
73 rm -f gdk-$(GDKTARGET)-3.0-uninstalled.pc && \
74 cp gdk-3.0-uninstalled.pc gdk-$(GDKTARGET)-3.0-uninstalled.pc
76 pkgconfigdir = $(libdir)/pkgconfig
77 pkgconfig_DATA = gdk-$(GDKTARGET)-3.0.pc gtk+-$(GDKTARGET)-3.0.pc gail-3.0.pc
80 pkgconfig_DATA += gtk+-unix-print-3.0.pc
84 gtk+-unix-print-3.0.pc \
85 gtk+-$(GDKTARGET)-3.0.pc \
86 gdk-$(GDKTARGET)-3.0.pc \
88 gtk+-$(GDKTARGET)-3.0-uninstalled.pc \
89 gdk-$(GDKTARGET)-3.0-uninstalled.pc \
90 gail-3.0-uninstalled.pc \
94 if test "$(srcdir)" = "."; then :; else \
100 @if test -d "$(srcdir)/.git"; then \
101 (GIT_DIR=$(top_srcdir)/.git ./missing --run git log GTK_2_16_0^^.. --stat) | fmt --split-only > $@.tmp \
104 echo Failed to generate ChangeLog, your ChangeLog may be outdated >&2; \
105 (test -f $@ || echo git-log is required to generate this file >> $@)); \
108 (echo A git checkout and git-log is required to generate ChangeLog >&2 && \
109 echo A git checkout and git-log is required to generate this file >> $@); \
112 ## copy the default target for this platform to gdk-3.0.pc and gtk+-3.0.pc
113 DEFAULT_GDKTARGET=x11
115 (cd $(DESTDIR)$(pkgconfigdir) && \
116 test -f gdk-$(DEFAULT_GDKTARGET)-3.0.pc && \
117 test -f gtk+-$(DEFAULT_GDKTARGET)-3.0.pc && \
118 rm -f gdk-3.0.pc && cp -f gdk-$(DEFAULT_GDKTARGET)-3.0.pc gdk-3.0.pc && \
119 rm -f gtk+-3.0.pc && cp -f gtk+-$(DEFAULT_GDKTARGET)-3.0.pc gtk+-3.0.pc) || \
120 (cd $(DESTDIR)$(pkgconfigdir) && \
121 rm -f gdk-3.0.pc && cp -f gdk-$(GDKTARGET)-3.0.pc gdk-3.0.pc && \
122 rm -f gtk+-3.0.pc && cp -f gtk+-$(GDKTARGET)-3.0.pc gtk+-3.0.pc)
125 rm -f $(DESTDIR)$(pkgconfigdir)/gdk-3.0.pc
126 rm -f $(DESTDIR)$(pkgconfigdir)/gtk+-3.0.pc
129 if test -f $(srcdir)/INSTALL.in && test -f $(srcdir)/README.in ; then \
130 CONFIG_FILES="INSTALL:$(srcdir)/INSTALL.in README:$(srcdir)/README.in" \
132 $(SHELL) config.status \
133 && cp INSTALL README $(distdir) ; \
136 .PHONY: files release sanity snapshot ChangeLog
139 @files=`ls $(DISTFILES) 2> /dev/null `; for p in $$files; do \
142 @for subdir in $(SUBDIRS); do \
143 files=`cd $$subdir; $(MAKE) files | grep -v "make\[[1-9]\]"`; \
144 for file in $$files; do \
145 echo $$subdir/$$file; \
154 ./sanity_check $(VERSION)
158 $(MAKE) dist distdir=$(PACKAGE)-snap`date +"%Y%m%d"`
160 DISTCHECK_CONFIGURE_FLAGS = \
164 --enable-introspection
167 po-properties/Makefile.in.in \
168 po-properties/Makefile.in \
169 po-properties/Makefile \
170 po-properties/*.gmo \
172 po-properties/POTFILES \
173 po-properties/stamp-it \
174 po-properties/.intltool-merge-cache
176 -include $(top_srcdir)/git.mk