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

43

44
# These may be in the builddir too
45
BUILT_EXTRA_DIST = 		\
46 47
	README			\
	INSTALL			\
48
	glibconfig.h.win32	\
Soeren Sandmann's avatar
Soeren Sandmann committed
49 50
	config.h.win32		\
	gtk-doc.make
51

52
configexecincludedir = $(libdir)/glib-2.0/include
53 54 55 56 57 58 59
#configexecinclude_DATA = glibconfig.h

install-exec-local: glibconfig.h
	$(mkinstalldirs) $(DESTDIR)$(configexecincludedir)
	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
60

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

64
CONFIGURE_DEPENDENCIES = acglib.m4
65

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

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

77 78
$(pkgconfig_DATA): config.status

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

83 84
# build documentation when doing distcheck
DISTCHECK_CONFIGURE_FLAGS = --enable-gtk-doc
85

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

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

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

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

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

sanity:
	./sanity_check $(VERSION)

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

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

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