Makefile.am 2.88 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 gobject gmodule gthread tests build po docs
Tim Janik's avatar
Tim Janik committed
7

8 9
bin_SCRIPTS = glib-gettextize

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

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

51

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

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

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

66
CONFIGURE_DEPENDENCIES = acglib.m4
67

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

76
pkgconfigdir = $(libdir)/pkgconfig
77
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
78

79 80
$(pkgconfig_DATA): config.status

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

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

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

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

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

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

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

sanity:
	./sanity_check $(VERSION)

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

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

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