Makefile.am 2.42 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 gsk gtk modules demos tests testsuite examples
5
SUBDIRS = po po-properties $(SRC_SUBDIRS) docs 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 25
	po/po2tbl.sed.in	\
	make-pot
26

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

37 38

## Copy .pc files to target-specific names
39
gtk+-x11-4.0.pc gtk+-win32-4.0.pc gtk+-quartz-4.0.pc gtk+-broadway-4.0.pc gtk+-wayland-4.0.pc gtk+-mir-4.0.pc: gtk+-4.0.pc
40
	rm -f $@ && \
41
	cp gtk+-4.0.pc $@
42

43
pkgconfigdir = $(libdir)/pkgconfig
44
pkgconfig_DATA = gtk+-4.0.pc gail-4.0.pc
45
pkgconfig_DATA += ${GDK_BACKENDS:%=gtk+-%-4.0.pc}
46

47
if OS_UNIX
48
pkgconfig_DATA += gtk+-unix-print-4.0.pc
49
endif
50

51
DISTCLEANFILES = \
52 53 54 55 56 57 58 59 60
	gtk+-unix-print-4.0.pc		\
	gtk+-4.0.pc			\
	gtk+-x11-4.0.pc			\
	gtk+-win32-4.0.pc		\
	gtk+-quartz-4.0.pc		\
	gtk+-broadway-4.0.pc		\
	gtk+-wayland-4.0.pc		\
	gtk+-mir-4.0.pc			\
	gail-4.0.pc			\
Matthias Clasen's avatar
Matthias Clasen committed
61
	config.lt
62

Matthias Clasen's avatar
Matthias Clasen committed
63
distclean-local:
Christian Persch's avatar
Christian Persch committed
64
	if test "$(srcdir)" = "."; then :; else \
Matthias Clasen's avatar
Matthias Clasen committed
65 66 67
		rm -f ChangeLog; \
	fi

68
ChangeLog:
69
	$(AM_V_GEN) if test -d "$(srcdir)/.git"; then \
70
	  (GIT_DIR=$(top_srcdir)/.git $(top_builddir)/build-aux/missing git log GTK_2_16_0^^.. --stat) | fmt --split-only > $@.tmp \
71 72 73 74 75 76 77 78 79 80
	  && 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

81 82
.PHONY: ChangeLog

83
uninstall-local:
84
	rm -f $(DESTDIR)$(pkgconfigdir)/gtk+-4.0.pc
85

86
AM_DISTCHECK_CONFIGURE_FLAGS =		\
87
	--enable-gtk-doc 		\
88
	--disable-doc-cross-references  \
89 90 91 92
	--enable-man 			\
	--disable-maintainer-mode 	\
	--enable-introspection  	\
	--enable-installed-tests
93

94
GITIGNORE_TRANSLATION_DIRS = po-properties
95
GITIGNOREFILES = po-properties/gtk40-properties.pot
96 97

-include $(top_srcdir)/git.mk