hy/Makefile

44 lines
581 B
Makefile
Raw Normal View History

2013-03-03 05:52:56 +01:00
all:
@echo "No default step. Use setup.py"
@echo ""
@echo " Other targets:"
@echo ""
@echo " - dev (test & flake)"
@echo " - flake"
@echo " - test"
2013-03-06 03:44:26 +01:00
@echo " - diff"
2013-03-07 01:19:54 +01:00
@echo " - tox"
2013-03-06 03:44:26 +01:00
@echo " - d"
@echo " - r"
2013-03-03 05:52:56 +01:00
@echo ""
2013-03-08 01:23:11 +01:00
venv:
ifeq (,$(findstring hy,$(VIRTUAL_ENV)))
@echo "You're not in a Hy virtualenv. FOR SHAME"
exit 1
else
@echo "We're properly in a virtualenv. Going ahead."
endif
2013-03-03 05:52:56 +01:00
2013-03-07 02:59:45 +01:00
dev: test flake
2013-03-03 05:52:56 +01:00
2013-03-08 01:23:11 +01:00
test: venv
2013-03-03 05:52:56 +01:00
nosetests -sv
2013-03-08 01:23:11 +01:00
tox: venv
2013-03-07 01:19:54 +01:00
tox
2013-03-03 05:52:56 +01:00
flake:
flake8 hy
2013-03-10 04:47:25 +01:00
flake8 site
2013-03-05 01:12:57 +01:00
clear:
clear
d: clear dev
2013-03-05 03:03:18 +01:00
diff:
git diff --color | less -r
2013-03-07 02:59:45 +01:00
r: d tox diff