Skip to content

Commit

Permalink
[swig] refs skycoin#133 Update makefile in order of new directory build
Browse files Browse the repository at this point in the history
  • Loading branch information
stdevMac committed May 5, 2019
1 parent 36c7f47 commit dc3e178
Show file tree
Hide file tree
Showing 3 changed files with 13 additions and 4 deletions.
13 changes: 11 additions & 2 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -1,30 +1,39 @@
# general things to ignore
lib/swig/build/
build/
lib/swig/dist/
dist/
*.egg-info/
*.egg
*.eggs
*.py[cod]
lib/swig/__pycache__/
__pycache__/
lib/swig/.pytest_cache
.pytest_cache
*.so
*.o
*.orig
lib/swig/Pyskycoin-*
Pyskycoin-*
lib/swig/eggs
eggs
lib/swig/wheelhouse/
wheelhouse/

*~

#Copy of libskycoin.h in pyskycoin
swig/include/libskycoin.h
lib/swig/swig/include/libskycoin.h

#Just for testing outside tox
tests/mytest.py
lib/swig/tests/mytest.py

# due to using tox and pytest
.tox
lib/swig/.tox
.cache
lib/swig/.cache

# Temp files
*.swp
Expand Down
4 changes: 2 additions & 2 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -61,11 +61,11 @@ build-swig: ## Generate Python C module from SWIG interfaces
sed -i 's/#/%/g' $(LIBSWIG_DIR)/structs.i ;\
fi \
}
rm -f .$(LIBSWIG_PYSKYCOIN)/skycoin/skycoin.py
rm -f $(LIBSWIG_PYSKYCOIN)/skycoin/skycoin.py
rm -f $(LIBSWIG_PYSKYCOIN)/swig/pyskycoin_wrap.c
rm -f $(LIBSWIG_PYSKYCOIN)/swig/include/swig.h
cp -v gopath/src/github.com/skycoin/skycoin/include/swig.h $(LIBSWIG_PYSKYCOIN)/swig/include/
swig -python -Iswig/include -I$(INCLUDE_DIR) -outdir .$(LIBSWIG_PYSKYCOIN)/skycoin/ -o $(LIBSWIG_PYSKYCOIN)/swig/pyskycoin_wrap.c $(LIBSWIG_DIR)/pyskycoin.i
swig -python -Ilib/swig/swig/include -I$(INCLUDE_DIR) -outdir $(LIBSWIG_PYSKYCOIN)/skycoin/ -o $(LIBSWIG_PYSKYCOIN)/swig/pyskycoin_wrap.c $(LIBSWIG_DIR)/pyskycoin.i

develop: ## Install PySkycoin for development
(cd $(PYTHON_CLIENT_DIR) && $(PYTHON) setup.py develop) \
Expand Down
File renamed without changes.

0 comments on commit dc3e178

Please sign in to comment.