view Makefile @ 204:b8edcb693518

make: dist, all, and help should also be phony rules Otherwise you have to blow away the dist/ dir before you can make a new tarball.
author Augie Fackler <raf@durin42.com>
date Wed, 25 Apr 2018 13:32:18 -0400
parents 5484cfdc2d59
children 8341f2494b3f
line wrap: on
line source

PYTHON=python
help:
	@echo 'Commonly used make targets:'
	@echo '  tests - run all tests in the automatic test suite'

all: help

.PHONY: tests dist all help

MANIFEST.in:
	hg manifest | sed -e 's/^/include /' > MANIFEST.in

dist: MANIFEST.in
	TAR_OPTIONS="--owner=root --group=root --mode=u+w,go-w,a+rX-s" $(PYTHON) setup.py -q sdist

tests:
	$(PYTHON) test.py --with-doctest