6 CLEANFILES = $(BUILT_SOURCES)
13 noinst_PROGRAMS = $(GTESTER_PROGS)
16 include Makefile.introspection
18 include Makefile-cmph.am
19 include Makefile-girepository.am
20 include Makefile-giscanner.am
21 include Makefile-examples.am
22 include Makefile-gir.am
23 include Makefile-tools.am
25 ## Process this file with automake to produce Makefile.in
26 ACLOCAL_AMFLAGS = -I m4 ${ACLOCAL_FLAGS}
28 SUBDIRS = . docs tests
30 DIST_SUBDIRS = m4 $(SUBDIRS)
31 DISTCHECK_CONFIGURE_FLAGS = --enable-gtk-doc
34 docs/g-ir-compiler.1 \
35 docs/g-ir-generate.1 \
38 pkgconfigdir = $(libdir)/pkgconfig
39 pkgconfig_DATA = gobject-introspection-1.0.pc gobject-introspection-no-export-1.0.pc
41 m4dir = $(datadir)/aclocal
42 m4_DATA = m4/introspection.m4
44 makedir = $(datadir)/gobject-introspection-1.0
45 dist_make_DATA = Makefile.introspection
59 gtester --verbose $(GTESTER_PROGS)
60 @test ! -d $(top_srcdir)/.git || (test -f $(top_srcdir)/.git/hooks/pre-commit || (echo -e "ERROR: missing \
61 pre-commit hook.\n\ncopy misc/pre-commit to .git/hooks"; false))
62 @test ! -d $(top_srcdir)/.git || (test -x $(top_srcdir)/.git/hooks/pre-commit || (echo -e "ERROR: pre-commit \
63 is not executable\n\nrun chmod +x .git/hooks/pre-commit"; false))
64 @echo "TEST: PEP-8 INQUISITION"
65 @find $(top_srcdir)/giscanner -name \*.py | sort | uniq | xargs $(PYTHON) $(top_srcdir)/misc/pep8.py --repeat --exclude=config.py
66 @echo "TEST: Annotation pattern programs"
67 $(PYTHON) $(top_srcdir)/giscanner/annotationpatterns.py
68 @touch $(top_builddir)/.make-check-passed
71 @echo " CHECK Pyflakes"
72 @find $(top_srcdir)/giscanner -name \*.py | sort | uniq | xargs $(PYTHON) $(top_srcdir)/misc/pyflakes.py
75 # Colin's handy Makefile bits for:
76 # 1) stuffing tarballs with pre-generated scripts from your workstation
77 # 2) bumping configure.ac version post-release
78 # 3) tagging correctly in git
79 # 4) uploading to gnome.org
83 # $ make prepare-minor-release
86 TAG_PREFIX=GOBJECT_INTROSPECTION_
92 DISTNAME=$(PACKAGE)-$(VERSION).tar$(COMPRESSION)
93 TAG_VERSION=$(shell echo $(VERSION) |sed s/\\\./_/g)
95 prepare-release-tag: Makefile
96 git tag -m "Tag $(TAG_VERSION)" -a $(TAG_PREFIX)$(TAG_VERSION)
98 prepare-minor-release: $(DISTNAME) prepare-release-tag Makefile
99 env top_srcdir=$(top_srcdir) python $(top_srcdir)/tools/verbump.py
101 upload-release: $(DISTNAME) Makefile
102 git log origin/master..master
103 @echo -n "Ok to push? [y/N] "; read ans; test x$$ans == xy || exit 1
104 git push --tags origin master:master
105 scp $(DISTNAME) master.gnome.org:
106 ssh master.gnome.org install-module $(DISTNAME)