Makefile.am 3.74 KB
Newer Older
1
## Makefile.am for GTK+
2
include $(top_srcdir)/Makefile.decl
Elliot Lee's avatar
Elliot Lee committed
3

4
SRC_SUBDIRS = gdk gtk libgail-util modules demos tests perf examples
5
SUBDIRS = po po-properties $(SRC_SUBDIRS) docs m4macros build
Elliot Lee's avatar
Elliot Lee committed
6

7
ACLOCAL_AMFLAGS = -I m4 ${ACLOCAL_FLAGS}
8

9
EXTRA_DIST +=			\
Colin Walters's avatar
Colin Walters committed
10
	autogen.sh		\
Owen Taylor's avatar
Owen Taylor committed
11 12 13
	HACKING			\
	makecopyright		\
	NEWS.pre-1-0		\
14
	ChangeLog.pre-1-0	\
Owen Taylor's avatar
Owen Taylor committed
15
	ChangeLog.pre-1-2	\
16
	ChangeLog.pre-2-0	\
17 18 19
	ChangeLog.pre-2-2	\
	ChangeLog.pre-2-4	\
	ChangeLog.pre-2-6	\
Matthias Clasen's avatar
Matthias Clasen committed
20
	ChangeLog.pre-2-8	\
21
	ChangeLog.pre-2-10	\
22 23 24
	ChangeLog.pre-2-12	\
	ChangeLog.pre-2-14	\
	ChangeLog.pre-2-16	\
25
	ChangeLog.gtk-async-file-chooser	\
26
	ChangeLog.gtk-printing	\
27
	README.commits	\
Owen Taylor's avatar
Owen Taylor committed
28
	README.win32		\
29
	config.h.win32		\
30
	makefile.msc	\
31
	gtk-zip.sh.in		\
jacob berkman's avatar
jacob berkman committed
32
	sanitize-la.sh		\
Owen Taylor's avatar
Owen Taylor committed
33
	po/README.translators	\
34 35
	po/po2tbl.sed.in

36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54
MAINTAINERCLEANFILES = \
	$(srcdir)/INSTALL \
	$(srcdir)/README \
	$(srcdir)/aclocal.m4 \
	$(srcdir)/autoscan.log \
	$(srcdir)/compile \
	$(srcdir)/config.guess \
	$(srcdir)/config.h.in \
	$(srcdir)/config.sub \
	$(srcdir)/configure.scan \
	$(srcdir)/depcomp \
	$(srcdir)/install-sh \
	$(srcdir)/ltmain.sh \
	$(srcdir)/missing \
	$(srcdir)/omf.make \
	$(srcdir)/xmldocs.make \
	$(srcdir)/gtk-doc.make \
	$(srcdir)/ChangeLog \
	`find "$(srcdir)" -type f -name Makefile.in -print`
55

56 57

## Copy .pc files to target-specific names
58
gtk+-x11-3.0.pc gtk+-win32-3.0.pc gtk+-quartz-3.0.pc gtk+-broadway-3.0.pc gtk+-wayland-3.0.pc: gtk+-3.0.pc
59 60 61
	rm -f $@ && \
	cp gtk+-3.0.pc $@

62
gdk-x11-3.0.pc gdk-win32-3.0.pc gdk-quartz-3.0.pc gdk-broadway-3.0.pc gdk-wayland-3.0.pc: gdk-3.0.pc
63 64 65
	rm -f $@ && \
	cp gdk-3.0.pc $@

66
pkgconfigdir = $(libdir)/pkgconfig
67
pkgconfig_DATA = gdk-3.0.pc gtk+-3.0.pc gail-3.0.pc
68

69 70
pkgconfig_DATA += ${GDK_BACKENDS:%=gtk+-%-3.0.pc}
pkgconfig_DATA += ${GDK_BACKENDS:%=gdk-%-3.0.pc}
71

72
if OS_UNIX
73
pkgconfig_DATA += gtk+-unix-print-3.0.pc
74
endif
75

76 77 78
DISTCLEANFILES = \
	gtk+-unix-print-3.0.pc		\
	gtk+-3.0.pc			\
Matthias Clasen's avatar
Matthias Clasen committed
79 80 81
	gtk+-x11-3.0.pc			\
	gdk-3.0.pc			\
	gdk-x11-3.0.pc			\
82
	gail-3.0.pc			\
Matthias Clasen's avatar
Matthias Clasen committed
83
	config.lt
84

Matthias Clasen's avatar
Matthias Clasen committed
85
distclean-local:
Christian Persch's avatar
Christian Persch committed
86
	if test "$(srcdir)" = "."; then :; else \
Matthias Clasen's avatar
Matthias Clasen committed
87 88 89
		rm -f ChangeLog; \
	fi

90
ChangeLog:
91
	$(AM_V_GEN) if test -d "$(srcdir)/.git"; then \
92 93 94 95 96 97 98 99 100 101 102
	  (GIT_DIR=$(top_srcdir)/.git ./missing --run git log GTK_2_16_0^^.. --stat) | fmt --split-only > $@.tmp \
	  && mv -f $@.tmp $@ \
	  || ($(RM) $@.tmp; \
	      echo Failed to generate ChangeLog, your ChangeLog may be outdated >&2; \
	      (test -f $@ || echo git-log is required to generate this file >> $@)); \
	else \
	  test -f $@ || \
	  (echo A git checkout and git-log is required to generate ChangeLog >&2 && \
	  echo A git checkout and git-log is required to generate this file >> $@); \
	fi

103
uninstall-local:
104
	rm -f $(DESTDIR)$(pkgconfigdir)/gtk+-3.0.pc
105

106
dist-hook:
107
	if test -f $(srcdir)/INSTALL.in && test -f $(srcdir)/README.in ; then \
108 109 110 111
	     CONFIG_FILES="INSTALL:$(srcdir)/INSTALL.in README:$(srcdir)/README.in" \
	     CONFIG_HEADERS= \
	     $(SHELL) config.status \
	     && cp INSTALL README $(distdir) ; \
112
	fi
Elliot Lee's avatar
Elliot Lee committed
113

114
.PHONY: files release sanity snapshot ChangeLog
Elliot Lee's avatar
Elliot Lee committed
115 116 117 118 119 120 121 122 123 124 125 126

files:
	@files=`ls $(DISTFILES) 2> /dev/null `; for p in $$files; do \
	  echo $$p; \
	done
	@for subdir in $(SUBDIRS); do \
	  files=`cd $$subdir; $(MAKE) files | grep -v "make\[[1-9]\]"`; \
	  for file in $$files; do \
	    echo $$subdir/$$file; \
	  done; \
	done

127 128 129
release:
	rm -rf .deps */.deps
	$(MAKE) distcheck
Elliot Lee's avatar
Elliot Lee committed
130

131 132
sanity:
	./sanity_check $(VERSION)
Elliot Lee's avatar
Elliot Lee committed
133

134 135

snapshot:
136
	$(MAKE) dist distdir=$(PACKAGE)-snap`date +"%Y%m%d"`
137

Matthias Clasen's avatar
Matthias Clasen committed
138 139 140 141
DISTCHECK_CONFIGURE_FLAGS =		\
		--enable-gtk-doc 	\
		--enable-man 		\
		--disable-rebuilds 	\
142
		--disable-maintainer-mode \
Matthias Clasen's avatar
Matthias Clasen committed
143
		--enable-introspection
144 145 146 147 148 149 150 151 152 153 154 155

GITIGNOREFILES = \
	po-properties/Makefile.in.in \
	po-properties/Makefile.in \
	po-properties/Makefile \
	po-properties/*.gmo \
	po-properties/*.mo \
	po-properties/POTFILES \
	po-properties/stamp-it \
	po-properties/.intltool-merge-cache

-include $(top_srcdir)/git.mk