forked from spencergibb/battleschool
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Makefile
35 lines (27 loc) · 796 Bytes
/
Makefile
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
#!/usr/bin/make
# WARN: gmake syntax
########################################################
# Makefile for Battleschool
#
# useful targets:
# make sdist ---------------- produce a tarball
########################################################
# variable section
PYTHON=python
########################################################
all: clean python
clean:
@echo "Cleaning up distutils stuff"
rm -rf build
rm -rf dist
@echo "Cleaning up byte compiled python stuff"
find . -type f -regex ".*\.py[co]$$" -delete
@echo "Cleaning up editor backup files"
find . -type f \( -name "*~" -or -name "#*" \) -delete
find . -type f \( -name "*.swp" \) -delete
python:
$(PYTHON) setup.py build
install:
$(PYTHON) setup.py install
sdist: clean
$(PYTHON) setup.py sdist -t MANIFEST.in