-
Notifications
You must be signed in to change notification settings - Fork 17
/
Copy pathMakefile
40 lines (29 loc) · 870 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
36
37
38
39
VENV=venv
all :
@echo "Run \`make workflow\` to create the Alfred workflow file after removing the old one if it exists."
distclean :
rm -f ./alfred-chrome-history.alfredworkflow
clean :
rm -f alfred.py
rm -f docopt.py
rm -rf ${VENV}
find . -iname "*.pyc" -delete
venv : ${VENV}/bin/activate
venv/bin/activate : requirements.txt
test -d ${VENV} || virtualenv ${VENV}
. ${VENV}/bin/activate
touch ${VENV}/bin/activate
install : venv
. ${VENV}/bin/activate
pip install -r requirements.txt --upgrade --force-reinstall
lib :
cp `python sitepackages.py`/alfred.py alfred.py
cp `python sitepackages.py`/docopt.py docopt.py
dev : install \
lib
zip :
zip -r ./alfred-chrome-history.alfredworkflow . -x "*.git*" "*venv*" .gitignore Makefile History requirements.txt README.md sitepackages.py screenshot.png
workflow : distclean \
install \
lib \
zip