Makefile.am 2.85 KB
Newer Older
Owen Taylor's avatar
Owen Taylor committed
1 2
## Process this file with automake to produce Makefile.in

3
AUTOMAKE_OPTIONS = 1.7
4

5
SUBDIRS = . m4macros glib gobject gmodule gthread tests build po docs
Tim Janik's avatar
Tim Janik committed
6

7 8
bin_SCRIPTS = glib-gettextize

9
INCLUDES = -DG_LOG_DOMAIN=g_log_domain_glib @GLIB_DEBUG_FLAGS@ \
Owen Taylor's avatar
Owen Taylor committed
10
	-DG_DISABLE_DEPRECATED -DGLIB_COMPILATION
11

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

50

51
# These may be in the builddir too
52
BUILT_EXTRA_DIST = 		\
53 54
	README			\
	INSTALL			\
55
	glibconfig.h.win32	\
Soeren Sandmann's avatar
Soeren Sandmann committed
56 57
	config.h.win32		\
	gtk-doc.make
58

59
configexecincludedir = $(libdir)/glib-2.0/include
Matthias Clasen's avatar
Matthias Clasen committed
60
configexecinclude_DATA = glibconfig.h
Owen Taylor's avatar
Owen Taylor committed
61

62 63 64
uninstall-local:
	rm -f $(DESTDIR)$(configexecincludedir)/glibconfig.h

65
CONFIGURE_DEPENDENCIES = acglib.m4
66

67 68
BUILT_SOURCES = stamp-gc-h #note: not glibconfig.h
glibconfig.h: stamp-gc-h
69 70
	@if test -f glibconfig.h; then :; \
	else rm -f stamp-gc-h; $(MAKE) stamp-gc-h; fi
71
stamp-gc-h: config.status
72
	cd $(top_builddir) && $(SHELL) ./config.status glibconfig.h
73 74
	echo timestamp > stamp-gc-h

75
pkgconfigdir = $(libdir)/pkgconfig
76
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
Havoc Pennington's avatar
Havoc Pennington committed
77

78 79
$(pkgconfig_DATA): config.status

80 81 82 83
# install mkinstalldirs for glib-gettextize's benefit
gettextdir = $(datadir)/glib-2.0/gettext
gettext_SCRIPTS = mkinstalldirs

84
# build documentation when doing distcheck
Matthias Clasen's avatar
Matthias Clasen committed
85
DISTCHECK_CONFIGURE_FLAGS = --enable-debug --enable-gtk-doc --enable-man
86

87 88
DISTCLEANFILES = glibconfig-sysdefs.h glibconfig.h stamp-gc-h

89 90 91 92 93
distclean-local:
	if test $(srcdir) = .; then :; else \
	    rm -f $(BUILT_EXTRA_DIST); \
	fi

94
.PHONY: files release sanity snapshot
Owen Taylor's avatar
Owen Taylor committed
95 96 97 98 99 100 101

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

release:
102 103 104 105 106 107 108 109
	rm -rf .deps */.deps
	cd docs && make glib.html
	$(MAKE) distcheck

sanity:
	./sanity_check $(VERSION)

snapshot:
Owen Taylor's avatar
Owen Taylor committed
110 111 112 113
	$(MAKE) dist distdir=$(PACKAGE)-snap`date +"%Y%m%d"`

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

115
dist-hook: $(BUILT_EXTRA_DIST)
116
	files='$(BUILT_EXTRA_DIST)'; \
117 118
	for f in $$files; do \
	  if test -f $$f; then d=.; else d=$(srcdir); fi; \
119
	  rm -f $(distdir)/$$f && cp $$d/$$f $(distdir) || exit 1; done