[typelib] Remove space/indent mismatch
[gnome.gobject-introspection] / Makefile.am
index b064a57..1539706 100644 (file)
@@ -1,46 +1,63 @@
 ## Process this file with automake to produce Makefile.in
-ACLOCAL_AMFLAGS = -I m4
-
-SUBDIRS = gir girepository giscanner tools tests
-DIST_SUBDIRS = m4 $(SUBDIRS)
+include $(top_srcdir)/gcov.mak
 
-pkgconfigdir = $(libdir)/pkgconfig
-pkgconfig_DATA = gobject-introspection.pc
-EXTRA_DIST = $(pkgconfig_DATA)
+GCOVSOURCES =
 
 if GI_GCOV_ENABLED
 GCOV_DIRS = girepository tools
 
-clean-gcov:
-       find  -name "*.gcda" -o -name "*.gcov" -delete
-
-clean-gcno:
-       find  -name "*.gcno" -delete
-
-gcov-all:
-       @for dir in $(GCOV_DIRS); do \
-               cd $(abs_srcdir)/$$dir && \
-               for file in *.c; do \
-                       gcov -f -p -o `find $(abs_builddir)/$$dir -newer $$file -name "*-$${file/.c/.gcda}" -print0 | sed -e 's/\.gcda/\.o/'` $$file > /dev/null; \
-               done \
-       done
-
-coverage-report.txt: clean clean-gcov all check gcov-all
-       @rm  -f $(top_builddir)/coverage-report.txt
-       @echo -e "=== Coverage Report ===\n" >> $(top_builddir)/coverage-report.txt
-       @for dir in $(GCOV_DIRS); do \
-               echo "Module '$$dir':" >> $(top_builddir)/coverage-report.txt; \
-               $(MAKE) -C $$dir coverage-report; \
-       done
-
 check-coverage: coverage-report.txt
        @cat $(top_builddir)/coverage-report.txt
 
-.PHONEY: gcov-all coverage-report.txt
-
 else
 
 check-coverage:
-       @echo "Need to reconfigure with --enable-gcov"
+       @echo "ERROR: Need to reconfigure with --enable-gcov to run make check-coverage"
 
 endif
+
+ACLOCAL_AMFLAGS = -I m4
+
+SUBDIRS = girepository giscanner tools gir docs tests examples
+DIST_SUBDIRS = m4 $(SUBDIRS)
+
+man_MANS =                     \
+       docs/g-ir-compiler.1    \
+       docs/g-ir-generate.1    \
+       docs/g-ir-scanner.1
+
+pkgconfigdir = $(libdir)/pkgconfig
+pkgconfig_DATA = gobject-introspection-1.0.pc gobject-introspection-no-export-1.0.pc
+
+m4dir = $(datadir)/aclocal
+m4_DATA = m4/introspection.m4
+
+makedir = $(datadir)/gobject-introspection-1.0
+dist_make_DATA = Makefile.introspection
+
+EXTRA_DIST =                   \
+       COPYING.LGPL            \
+       COPYING.GPL             \
+       CONTRIBUTORS            \
+       $(pkgconfig_DATA)       \
+       $(man_MANS)             \
+       $(m4_DATA)              \
+       misc/pep8.py            \
+       misc/pyflakes.py
+
+release-tag:
+       @TAG=`echo $(VERSION)|sed s/\\\./_/g`;\
+         echo "* Tagging $(VERSION)"; \
+          git tag -s -m "Tag $$VERSION" -a \
+              GOBJECT_INTROSPECTION_$$TAG && \
+             git push --tags ssh://git.gnome.org/git/gobject-introspection
+
+upload-release: $(distdir).tar.gz
+       scp $(distdir).tar.gz gnome.org:
+       ssh gnome.org install-module $(distdir).tar.gz
+
+check-local:
+       @echo "  PEP-8 INQUISITION"
+       @find $(top_srcdir)/giscanner -name \*.py | sort | uniq | xargs $(PYTHON) $(top_srcdir)/misc/pep8.py --repeat --exclude=config.py
+       @echo "  CHECK Pyflakes"
+       @find $(top_srcdir)/giscanner -name \*.py | sort | uniq | xargs $(PYTHON) $(top_srcdir)/misc/pyflakes.py