Makefile.am 3.64 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 12 13
	HACKING			\
	makecopyright		\
	NEWS.pre-1-0		\
14
	README.commits	\
Owen Taylor's avatar
Owen Taylor committed
15
	README.win32		\
16
	config.h.win32		\
17
	makefile.msc	\
18
	gtk-zip.sh.in		\
jacob berkman's avatar
jacob berkman committed
19
	sanitize-la.sh		\
Owen Taylor's avatar
Owen Taylor committed
20
	po/README.translators	\
21 22
	po/po2tbl.sed.in

23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41
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`
42

43 44

## Copy .pc files to target-specific names
45
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
46 47 48
	rm -f $@ && \
	cp gtk+-3.0.pc $@

49
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
50 51 52
	rm -f $@ && \
	cp gdk-3.0.pc $@

53
pkgconfigdir = $(libdir)/pkgconfig
54
pkgconfig_DATA = gdk-3.0.pc gtk+-3.0.pc gail-3.0.pc
55

56 57
pkgconfig_DATA += ${GDK_BACKENDS:%=gtk+-%-3.0.pc}
pkgconfig_DATA += ${GDK_BACKENDS:%=gdk-%-3.0.pc}
58

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

63 64 65
DISTCLEANFILES = \
	gtk+-unix-print-3.0.pc		\
	gtk+-3.0.pc			\
Matthias Clasen's avatar
Matthias Clasen committed
66
	gtk+-x11-3.0.pc			\
67 68 69 70
	gtk+-win32-3.0.pc		\
	gtk+-quartz-3.0.pc		\
	gtk+-broadway-3.0.pc		\
	gtk+-wayland-3.0.pc		\
Matthias Clasen's avatar
Matthias Clasen committed
71 72
	gdk-3.0.pc			\
	gdk-x11-3.0.pc			\
73 74 75 76
	gdk-win32-3.0.pc		\
	gdk-quartz-3.0.pc		\
	gdk-broadway-3.0.pc		\
	gdk-wayland-3.0.pc		\
77
	gail-3.0.pc			\
Matthias Clasen's avatar
Matthias Clasen committed
78
	config.lt
79

Matthias Clasen's avatar
Matthias Clasen committed
80
distclean-local:
Christian Persch's avatar
Christian Persch committed
81
	if test "$(srcdir)" = "."; then :; else \
Matthias Clasen's avatar
Matthias Clasen committed
82 83 84
		rm -f ChangeLog; \
	fi

85
ChangeLog:
86
	$(AM_V_GEN) if test -d "$(srcdir)/.git"; then \
87 88 89 90 91 92 93 94 95 96 97
	  (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

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

101
dist-hook:
102
	if test -f $(srcdir)/INSTALL.in && test -f $(srcdir)/README.in ; then \
103 104 105 106
	     CONFIG_FILES="INSTALL:$(srcdir)/INSTALL.in README:$(srcdir)/README.in" \
	     CONFIG_HEADERS= \
	     $(SHELL) config.status \
	     && cp INSTALL README $(distdir) ; \
107
	fi
Elliot Lee's avatar
Elliot Lee committed
108

109
.PHONY: files release sanity snapshot ChangeLog
Elliot Lee's avatar
Elliot Lee committed
110 111 112 113 114 115 116 117 118 119 120 121

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

122 123 124
release:
	rm -rf .deps */.deps
	$(MAKE) distcheck
Elliot Lee's avatar
Elliot Lee committed
125

126 127
sanity:
	./sanity_check $(VERSION)
Elliot Lee's avatar
Elliot Lee committed
128

129 130

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

Matthias Clasen's avatar
Matthias Clasen committed
133 134 135 136
DISTCHECK_CONFIGURE_FLAGS =		\
		--enable-gtk-doc 	\
		--enable-man 		\
		--disable-rebuilds 	\
137
		--disable-maintainer-mode \
Matthias Clasen's avatar
Matthias Clasen committed
138
		--enable-introspection
139 140 141 142 143 144 145 146 147 148 149 150

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