Fix gen_const
This commit is contained in:
parent
9131856506
commit
9e1443013b
|
@ -24,8 +24,8 @@ build:
|
|||
$(MAKE) -C go gen_const
|
||||
$(MAKE) -C java gen_const
|
||||
$(MAKE) -C ruby gen_const
|
||||
python const_generator.py dotnet
|
||||
python const_generator.py pascal
|
||||
python3 const_generator.py dotnet
|
||||
python3 const_generator.py pascal
|
||||
|
||||
install: build
|
||||
$(MAKE) -C python install
|
||||
|
@ -40,7 +40,7 @@ python:
|
|||
%.c.txt: c
|
||||
$(ENV_VARS) ../samples/$(@:%.c.txt=%) > $@
|
||||
%.py.txt: python
|
||||
$(ENV_VARS) python python/$(@:%.txt=%) > $@
|
||||
$(ENV_VARS) python3 python/$(@:%.txt=%) > $@
|
||||
|
||||
%.py.test: %.c.txt %.py.txt
|
||||
$(DIFF) -u $(@:%.py.test=%.c.txt) $(@:%.py.test=%.py.txt)
|
||||
|
|
|
@ -6,7 +6,7 @@ all: gen_const
|
|||
cd unicorn && go build
|
||||
|
||||
gen_const:
|
||||
cd .. && python const_generator.py go
|
||||
cd .. && python3 const_generator.py go
|
||||
|
||||
test: all
|
||||
cd unicorn && LD_LIBRARY_PATH=../../../ DYLD_LIBRARY_PATH=../../../ go test
|
||||
|
|
|
@ -19,7 +19,7 @@ uninstall:
|
|||
$(MAKE) -f Makefile.build uninstall
|
||||
|
||||
gen_const:
|
||||
cd .. && python const_generator.py java
|
||||
cd .. && python3 const_generator.py java
|
||||
|
||||
clean:
|
||||
rm -f unicorn/*.class
|
||||
|
|
|
@ -3,16 +3,16 @@
|
|||
.PHONY: gen_const install install3 clean sdist sdist3 bdist bdist3 sdist_win bdist_win
|
||||
|
||||
gen_const:
|
||||
cd .. && python const_generator.py python
|
||||
cd .. && python3 const_generator.py python
|
||||
|
||||
install:
|
||||
rm -rf src/ dist/
|
||||
rm -rf prebuilt/win64/unicorn.dll
|
||||
rm -rf prebuilt/win32/unicorn.dll
|
||||
if test -n "${DESTDIR}"; then \
|
||||
python setup.py install --root="${DESTDIR}"; \
|
||||
python3 setup.py install --root="${DESTDIR}"; \
|
||||
else \
|
||||
python setup.py install; \
|
||||
python3 setup.py install; \
|
||||
fi
|
||||
|
||||
install3:
|
||||
|
@ -30,7 +30,7 @@ sdist:
|
|||
rm -rf src/ dist/
|
||||
rm -rf prebuilt/win64/unicorn.dll
|
||||
rm -rf prebuilt/win32/unicorn.dll
|
||||
python setup.py sdist register upload
|
||||
python3 setup.py sdist register upload
|
||||
|
||||
# build & upload PyPi package with source code of the core
|
||||
sdist3:
|
||||
|
@ -44,7 +44,7 @@ bdist:
|
|||
rm -rf src/ dist/
|
||||
rm -rf prebuilt/win64/unicorn.dll
|
||||
rm -rf prebuilt/win32/unicorn.dll
|
||||
python setup.py bdist_wheel register upload
|
||||
python3 setup.py bdist_wheel register upload
|
||||
|
||||
# build & upload PyPi package with precompiled core
|
||||
bdist3:
|
||||
|
@ -57,7 +57,7 @@ bdist3:
|
|||
# NOTE: be sure to have precompiled core under prebuilt/win*/ beforehand
|
||||
sdist_win:
|
||||
rm -rf src/ dist/
|
||||
python setup.py sdist register upload
|
||||
python3 setup.py sdist register upload
|
||||
|
||||
# build & upload PyPi package with prebuilt core
|
||||
# NOTE: be sure to have precompiled core under prebuilt/win*/ beforehand
|
||||
|
|
|
@ -8,4 +8,4 @@ install: gen_const
|
|||
cd unicorn_gem && gem install --local pkg/unicorn-engine-1.0.1.gem
|
||||
|
||||
gen_const:
|
||||
cd .. && python const_generator.py ruby
|
||||
cd .. && python3 const_generator.py ruby
|
||||
|
|
Loading…
Reference in New Issue