Makefile.am 2.91 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 testsuite 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
	HACKING			\
12
	README			\
13
	README.in		\
14
	INSTALL			\
15
	INSTALL.in		\
Owen Taylor's avatar
Owen Taylor committed
16
	NEWS.pre-1-0		\
17
	README.commits		\
Owen Taylor's avatar
Owen Taylor committed
18
	README.win32		\
19
	config.h.win32		\
20
	makefile.msc		\
21
	gtk-zip.sh.in		\
jacob berkman's avatar
jacob berkman committed
22
	sanitize-la.sh		\
Owen Taylor's avatar
Owen Taylor committed
23
	po/README.translators	\
24
	po/po2tbl.sed.in	\
Javier Jardón's avatar
Javier Jardón committed
25
	build-aux/config.rpath	\
26
	make-pot
27

28
MAINTAINERCLEANFILES = \
29 30 31
	$(GITIGNORE_MAINTAINERCLEANFILES_TOPLEVEL) \
	$(GITIGNORE_MAINTAINERCLEANFILES_M4_LIBTOOL) \
	$(GITIGNORE_MAINTAINERCLEANFILES_MAKEFILE_IN) \
32
	$(srcdir)/m4/gtk-doc.m4 \
33 34 35
	$(srcdir)/INSTALL \
	$(srcdir)/README \
	$(srcdir)/gtk-doc.make \
36
	$(srcdir)/ChangeLog
37

38 39

## Copy .pc files to target-specific names
40
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+-mir-3.0.pc: gtk+-3.0.pc
41 42 43
	rm -f $@ && \
	cp gtk+-3.0.pc $@

44
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-mir-3.0.pc: gdk-3.0.pc
45 46 47
	rm -f $@ && \
	cp gdk-3.0.pc $@

48
pkgconfigdir = $(libdir)/pkgconfig
49
pkgconfig_DATA = gdk-3.0.pc gtk+-3.0.pc gail-3.0.pc
50 51
pkgconfig_DATA += ${GDK_BACKENDS:%=gtk+-%-3.0.pc}
pkgconfig_DATA += ${GDK_BACKENDS:%=gdk-%-3.0.pc}
52

53
if OS_UNIX
54
pkgconfig_DATA += gtk+-unix-print-3.0.pc
55
endif
56

57 58 59
DISTCLEANFILES = \
	gtk+-unix-print-3.0.pc		\
	gtk+-3.0.pc			\
Matthias Clasen's avatar
Matthias Clasen committed
60
	gtk+-x11-3.0.pc			\
61 62 63 64
	gtk+-win32-3.0.pc		\
	gtk+-quartz-3.0.pc		\
	gtk+-broadway-3.0.pc		\
	gtk+-wayland-3.0.pc		\
65
	gtk+-mir-3.0.pc			\
Matthias Clasen's avatar
Matthias Clasen committed
66 67
	gdk-3.0.pc			\
	gdk-x11-3.0.pc			\
68 69 70 71
	gdk-win32-3.0.pc		\
	gdk-quartz-3.0.pc		\
	gdk-broadway-3.0.pc		\
	gdk-wayland-3.0.pc		\
72
	gdk-mir-3.0.pc			\
73
	gail-3.0.pc			\
Matthias Clasen's avatar
Matthias Clasen committed
74
	config.lt
75

Matthias Clasen's avatar
Matthias Clasen committed
76
distclean-local:
Christian Persch's avatar
Christian Persch committed
77
	if test "$(srcdir)" = "."; then :; else \
Matthias Clasen's avatar
Matthias Clasen committed
78 79 80
		rm -f ChangeLog; \
	fi

81
ChangeLog:
82
	$(AM_V_GEN) if test -d "$(srcdir)/.git"; then \
83
	  (GIT_DIR=$(top_srcdir)/.git $(top_builddir)/build-aux/missing git log GTK_2_16_0^^.. --stat) | fmt --split-only > $@.tmp \
84 85 86 87 88 89 90 91 92 93
	  && 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

94 95
.PHONY: ChangeLog

96
uninstall-local:
97
	rm -f $(DESTDIR)$(pkgconfigdir)/gtk+-3.0.pc
98

99
AM_DISTCHECK_CONFIGURE_FLAGS =		\
100
	--enable-gtk-doc 		\
101
	--disable-doc-cross-references  \
102 103 104 105
	--enable-man 			\
	--disable-maintainer-mode 	\
	--enable-introspection  	\
	--enable-installed-tests
106 107 108 109 110 111 112 113

GITIGNOREFILES = \
	po-properties/Makefile.in.in \
	po-properties/Makefile.in \
	po-properties/Makefile \
	po-properties/*.gmo \
	po-properties/*.mo \
	po-properties/POTFILES \
Javier Jardón's avatar
Javier Jardón committed
114
	po-properties/stamp-it
115 116

-include $(top_srcdir)/git.mk