Skip to content

Commit 8491d38

Browse files
committed
Adding make command to install yajl.
1 parent 9fa84f7 commit 8491d38

File tree

2 files changed

+12
-2
lines changed

2 files changed

+12
-2
lines changed

.gitignore

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -15,3 +15,6 @@ tmp/
1515
dist/
1616
build/
1717
*.egg-info/
18+
19+
# yajl build
20+
yajl-src

Makefile

Lines changed: 9 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,19 +2,20 @@ SHELL=/bin/bash
22
HTMLDIR=doc/build/html
33
HTMLSED=find ${HTMLDIR}/ -name '*.html' | xargs sed -i
44

5-
.PHONY: usage install test doc gh-pages build-doc
5+
.PHONY: usage install deps test doc gh-pages build-doc
66

77
usage:
88
@echo
99
@echo Makefile for yajl-py
1010
@echo
1111
@echo Targets
1212
@echo " install :" easy_install yajl-py
13+
@echo " deps :" install compatible yajl version
1314
@echo " test :" run yajl-py tests
1415
@echo " doc :" install docs to gh-pages branch
1516

1617
install:
17-
easy_install .
18+
pip install .
1819

1920
test:
2021
nosetests -v tests/
@@ -31,3 +32,9 @@ build-doc:
3132
${HTMLSED} 's/_sources/sources/g'
3233
mv ${HTMLDIR}/{_,}static
3334
${HTMLSED} 's/_static/static/g'
35+
36+
deps:
37+
rm -fr yajl-src
38+
git clone https://github.com/lloyd/yajl.git yajl-src
39+
(cd yajl-src; git checkout 4c539cb5b; git reset --hard; ./configure)
40+
sudo make -C yajl-src install

0 commit comments

Comments
 (0)