-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathMakefile
More file actions
29 lines (22 loc) · 692 Bytes
/
Makefile
File metadata and controls
29 lines (22 loc) · 692 Bytes
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
PYCS := $(shell find . -name "*.pyc")
NAME = PrimeMinistersByPython
TARGET = PrimeMinisters.py
PACKAGE = primeministers
INSTDIR = PrimeMinisters.app/Contents/Resources/Python/
all:
rm -rf ~/Desktop/SouriDaijin
clean:
@for each in ${PYCS} ; do echo "rm -f $${each}" ; rm -f $${each} ; done
if [ -e $(INSTDIR) ] ; then rm -f -r $(INSTDIR) ; fi
test:
python ${TARGET}
@open ~/Desktop/SouriDaijin/index.html
install:
if [ ! -e $(INSTDIR) ] ; then mkdir $(INSTDIR) ; fi
cp -p -r $(TARGET) $(PACKAGE) $(INSTDIR)
zip: clean
(cd .. ; zip -r $(NAME).zip ./$(NAME)/)
sdist: clean
python setup.py sdist
pydoc: clean
(sleep 3 ; open http://localhost:9999/$(PACKAGE).html) & pydoc -p 9999