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

Matthias Clasen's avatar
Matthias Clasen committed
4
SRC_SUBDIRS = gdk gtk 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 55
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)/mkinstalldirs \
	$(srcdir)/omf.make \
	$(srcdir)/xmldocs.make \
	$(srcdir)/gtk-doc.make \
	$(srcdir)/ChangeLog \
	`find "$(srcdir)" -type f -name Makefile.in -print`
56

57
pkgconfigdir = $(libdir)/pkgconfig
58
pkgconfig_DATA = gtk+-3.0.pc gail-3.0.pc
59 60

if OS_UNIX
61
pkgconfig_DATA += gtk+-unix-print-3.0.pc
62
endif
63

64 65 66 67 68 69
DISTCLEANFILES = \
	gtk+-unix-print-3.0.pc		\
	gtk+-3.0.pc			\
	gail-3.0.pc			\
	gtk+-3.0-uninstalled.pc		\
	gail-3.0-uninstalled.pc		\
Matthias Clasen's avatar
Matthias Clasen committed
70
	config.lt
71

Matthias Clasen's avatar
Matthias Clasen committed
72
distclean-local:
Christian Persch's avatar
Christian Persch committed
73
	if test "$(srcdir)" = "."; then :; else \
Matthias Clasen's avatar
Matthias Clasen committed
74 75 76
		rm -f ChangeLog; \
	fi

77 78 79 80 81 82 83 84 85 86 87 88 89 90
ChangeLog:
	@echo Creating $@
	@if test -d "$(srcdir)/.git"; then \
	  (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

91
uninstall-local:
92
	rm -f $(DESTDIR)$(pkgconfigdir)/gtk+-3.0.pc
93

94
dist-hook:
95
	if test -f $(srcdir)/INSTALL.in && test -f $(srcdir)/README.in ; then \
96 97 98 99
	     CONFIG_FILES="INSTALL:$(srcdir)/INSTALL.in README:$(srcdir)/README.in" \
	     CONFIG_HEADERS= \
	     $(SHELL) config.status \
	     && cp INSTALL README $(distdir) ; \
100
	fi
Elliot Lee's avatar
Elliot Lee committed
101

102
.PHONY: files release sanity snapshot ChangeLog
Elliot Lee's avatar
Elliot Lee committed
103 104 105 106 107 108 109 110 111 112 113 114

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

115 116 117
release:
	rm -rf .deps */.deps
	$(MAKE) distcheck
Elliot Lee's avatar
Elliot Lee committed
118

119 120
sanity:
	./sanity_check $(VERSION)
Elliot Lee's avatar
Elliot Lee committed
121

122 123

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

Matthias Clasen's avatar
Matthias Clasen committed
126 127 128 129 130
DISTCHECK_CONFIGURE_FLAGS =		\
		--enable-gtk-doc 	\
		--enable-man 		\
		--disable-rebuilds 	\
		--enable-introspection
131 132 133 134 135 136 137 138 139 140 141 142

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