Makefile.am 3.11 KB
Newer Older
Owen Taylor's avatar
Owen Taylor committed
1
## Process this file with automake to produce Makefile.in
2
include $(top_srcdir)/Makefile.decl
Owen Taylor's avatar
Owen Taylor committed
3

4
AUTOMAKE_OPTIONS = 1.7
5

6
SUBDIRS = . m4macros glib gmodule gthread gobject gio tests po docs
7
DIST_SUBDIRS = $(SUBDIRS) build
Tim Janik's avatar
Tim Janik committed
8

9 10
bin_SCRIPTS = glib-gettextize

11 12 13 14 15
AM_CPPFLAGS = 					\
	-DG_LOG_DOMAIN=g_log_domain_glib 	\
	@GLIB_DEBUG_FLAGS@ 			\
	-DG_DISABLE_DEPRECATED 			\
	-DGLIB_COMPILATION
16

17
EXTRA_DIST += 			\
Matthias Clasen's avatar
Matthias Clasen committed
18
	ChangeLog.pre-2-14	\
19 20
	ChangeLog.pre-2-12	\
	ChangeLog.pre-2-10	\
Matthias Clasen's avatar
Matthias Clasen committed
21
	ChangeLog.pre-2-8	\
Owen Taylor's avatar
Owen Taylor committed
22 23
	ChangeLog.pre-2-6	\
	ChangeLog.pre-2-4	\
Tor Lillqvist's avatar
Tor Lillqvist committed
24
	ChangeLog.pre-2-2	\
Owen Taylor's avatar
Owen Taylor committed
25
	ChangeLog.pre-2-0	\
Owen Taylor's avatar
Owen Taylor committed
26
	ChangeLog.pre-1-2	\
27
	glib-zip.in		\
Tim Janik's avatar
Tim Janik committed
28
	NEWS.pre-1-3		\
29 30
	acglib.m4		\
	sanity_check		\
31
	README.commits		\
32 33
	README.in		\
	INSTALL.in		\
34
	README.win32		\
35 36 37
	HACKING			\
	MAINTAINERS		\
	autogen.sh		\
Matthias Clasen's avatar
Matthias Clasen committed
38
	Makefile.decl		\
Matthias Clasen's avatar
Matthias Clasen committed
39
	mkinstalldirs		\
40
	makefile.msc		\
41
	glibconfig.h.win32.in	\
42
	msvc_recommended_pragmas.h \
43
	config.h.win32.in	\
Owen Taylor's avatar
Owen Taylor committed
44
        po/po2tbl.sed.in        \
45 46 47
	glib-2.0.pc.in 		\
	gobject-2.0.pc.in 	\
	gmodule-2.0.pc.in	\
48
	gmodule-export-2.0.pc.in	\
49
	gmodule-no-export-2.0.pc.in	\
50
	gthread-2.0.pc.in	\
51 52
	gio-2.0.pc.in		\
	gio-unix-2.0.pc.in	\
53 54 55
	glib-2.0-uninstalled.pc.in 	\
	gobject-2.0-uninstalled.pc.in 	\
	gmodule-2.0-uninstalled.pc.in	\
56
	gthread-2.0-uninstalled.pc.in	\
57 58 59
	gmodule-no-export-2.0-uninstalled.pc.in \
	gio-2.0-uninstalled.pc.in		\
	gio-unix-2.0-uninstalled.pc.in	
60

61

62
# These may be in the builddir too
63
BUILT_EXTRA_DIST = 		\
64 65
	README			\
	INSTALL			\
66
	glibconfig.h.win32	\
Soeren Sandmann's avatar
Soeren Sandmann committed
67 68
	config.h.win32		\
	gtk-doc.make
69

70
configexecincludedir = $(libdir)/glib-2.0/include
Matthias Clasen's avatar
Matthias Clasen committed
71
configexecinclude_DATA = glibconfig.h
Owen Taylor's avatar
Owen Taylor committed
72

73 74 75
uninstall-local:
	rm -f $(DESTDIR)$(configexecincludedir)/glibconfig.h

76
CONFIGURE_DEPENDENCIES = acglib.m4
77

78 79
BUILT_SOURCES = stamp-gc-h #note: not glibconfig.h
glibconfig.h: stamp-gc-h
80 81
	@if test -f glibconfig.h; then :; \
	else rm -f stamp-gc-h; $(MAKE) stamp-gc-h; fi
82
stamp-gc-h: config.status
83
	cd $(top_builddir) && $(SHELL) ./config.status glibconfig.h
84 85
	echo timestamp > stamp-gc-h

86
pkgconfigdir = $(libdir)/pkgconfig
87
pkgconfig_DATA = glib-2.0.pc gobject-2.0.pc gmodule-2.0.pc gmodule-export-2.0.pc gmodule-no-export-2.0.pc gthread-2.0.pc gio-2.0.pc gio-unix-2.0.pc
Havoc Pennington's avatar
Havoc Pennington committed
88

89 90
$(pkgconfig_DATA): config.status

91 92 93 94
# install mkinstalldirs for glib-gettextize's benefit
gettextdir = $(datadir)/glib-2.0/gettext
gettext_SCRIPTS = mkinstalldirs

95
# build documentation when doing distcheck
Matthias Clasen's avatar
Matthias Clasen committed
96
DISTCHECK_CONFIGURE_FLAGS = --enable-debug --enable-gtk-doc --enable-man
97

Matthias Clasen's avatar
Matthias Clasen committed
98
DISTCLEANFILES = glibconfig-sysdefs.h glibconfig.h stamp-gc-h config.lt
99

100 101 102 103 104
distclean-local:
	if test $(srcdir) = .; then :; else \
	    rm -f $(BUILT_EXTRA_DIST); \
	fi

105
.PHONY: files release sanity snapshot
Owen Taylor's avatar
Owen Taylor committed
106 107 108 109 110 111 112

files:
	@files=`ls $(DISTFILES) 2> /dev/null `; for p in $$files; do \
	  echo $$p; \
	done

release:
113 114 115 116 117 118 119 120
	rm -rf .deps */.deps
	cd docs && make glib.html
	$(MAKE) distcheck

sanity:
	./sanity_check $(VERSION)

snapshot:
Owen Taylor's avatar
Owen Taylor committed
121 122 123 124
	$(MAKE) dist distdir=$(PACKAGE)-snap`date +"%Y%m%d"`

snapcheck:
	$(MAKE) distcheck distdir=$(PACKAGE)-snap`date +"%Y%m%d"`
125

126
dist-hook: $(BUILT_EXTRA_DIST)
127
	files='$(BUILT_EXTRA_DIST)'; \
128 129
	for f in $$files; do \
	  if test -f $$f; then d=.; else d=$(srcdir); fi; \
130
	  rm -f $(distdir)/$$f && cp $$d/$$f $(distdir) || exit 1; done