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

48

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

57
configexecincludedir = $(libdir)/glib-2.0/include
58 59 60
#configexecinclude_DATA = glibconfig.h

install-exec-local: glibconfig.h
61
	$(MKDIR_P) $(DESTDIR)$(configexecincludedir)
62 63 64
	file=$(DESTDIR)$(configexecincludedir)/glibconfig.h; \
	if test -r $$file && cmp -s glibconfig.h $$file; then :; \
	else $(INSTALL_DATA) glibconfig.h $$file; fi
Owen Taylor's avatar
Owen Taylor committed
65

66 67 68
uninstall-local:
	rm -f $(DESTDIR)$(configexecincludedir)/glibconfig.h

69
CONFIGURE_DEPENDENCIES = acglib.m4
70

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

79
pkgconfigdir = $(libdir)/pkgconfig
80
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
81

82 83
$(pkgconfig_DATA): config.status

84 85 86 87
# install mkinstalldirs for glib-gettextize's benefit
gettextdir = $(datadir)/glib-2.0/gettext
gettext_SCRIPTS = mkinstalldirs

88
# build documentation when doing distcheck
Matthias Clasen's avatar
Matthias Clasen committed
89
DISTCHECK_CONFIGURE_FLAGS = --enable-debug --enable-gtk-doc --enable-man
90

91 92
DISTCLEANFILES = glibconfig-sysdefs.h glibconfig.h stamp-gc-h

93 94 95 96 97
distclean-local:
	if test $(srcdir) = .; then :; else \
	    rm -f $(BUILT_EXTRA_DIST); \
	fi

98
.PHONY: files release sanity snapshot
Owen Taylor's avatar
Owen Taylor committed
99 100 101 102 103 104 105

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

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

sanity:
	./sanity_check $(VERSION)

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

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

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