#-----------------------------------------------------
#
-# Configuration directives are in postgis_config.h
+# Configuration directives are in postgis_config.h
#
#-----------------------------------------------------
# TODO: drop 'test' target..
test: check
-check: all docs-check
+check: all docs-check check-no-trailing-blanks
+
+check-no-trailing-blanks:
+ ! find . -name '*.cpp' -o -name '*.h' | \
+ grep -vf .gitignore | \
+ xargs grep -Pn '[\t ]$$'
installcheck:
RUNTESTFLAGS="$(RUNTESTFLAGS) --extension" $(MAKE) check
distclean-local: clean-local
rm -Rf autom4te.cache
rm -f GNUmakefile
- rm -f config.log config.cache config.status
+ rm -f config.log config.cache config.status
rm -f postgis_config.h
maintainer-clean-local: distclean-local
rm -f config.guess config.rpath config.sub
rm -f libtool install-sh ltmain.sh
-maintainer-clean:
+maintainer-clean:
@echo '------------------------------------------------------'
@echo 'This command is intended for maintainers to use; it'
@echo 'deletes files that may need special tools to rebuild.'
templategis-uninstall:
$(MAKE) -C extras/template_gis uninstall
-docs:
+docs:
$(MAKE) -C doc html
docs-clean:
comments:
$(MAKE) -C doc comments
-
+
cheatsheets:
$(MAKE) -C doc cheatsheets
astyle:
./astyle.sh
-
+
commit:
$(MAKE) astyle && $(MAKE) clean && $(MAKE) check && svn commit
svnrebase: authors.git
git svn rebase --authors-file authors.git
-postgis_svn_revision.h:
+postgis_svn_revision.h:
$(PERL) utils/svn_repo_revision.pl
.PHONY: utils liblwgeom ChangeLog raster postgis_svn_revision.h