Added a simple makefile for those whose fingers can't type anything
but "make install" Ensure that the full TARGETDIR exists changed the build scripts to play nicer with make. git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@4060 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
parent
7b65ea1af9
commit
305b8c10f1
18
utils/wxPython/Makefile
Normal file
18
utils/wxPython/Makefile
Normal file
@ -0,0 +1,18 @@
|
||||
#----------------------------------------------------------------------
|
||||
# Convenience makefile to drive the build script in a more user
|
||||
# friendly manner.
|
||||
#----------------------------------------------------------------------
|
||||
|
||||
|
||||
all:
|
||||
./buildall -b
|
||||
|
||||
|
||||
install: all
|
||||
./buildall -i
|
||||
|
||||
clean:
|
||||
./buildall -c
|
||||
|
||||
uninstall:
|
||||
./buildall -u
|
@ -1,11 +1,11 @@
|
||||
#!/bin/bash
|
||||
cd src
|
||||
build $*
|
||||
python ../distrib/build.py $*
|
||||
if [ "$?" != "0" ]; then
|
||||
exit 1
|
||||
fi
|
||||
|
||||
cd ../modules
|
||||
buildall.py $*
|
||||
python buildall.py $*
|
||||
cd ..
|
||||
|
||||
|
@ -1,9 +1,9 @@
|
||||
|
||||
cd %WXWIN%\utils\wxPython\src
|
||||
build %1 %2 %3 %4 %5 %6 %7 %8 %9
|
||||
python ..\distrib\build.py %1 %2 %3 %4 %5 %6 %7 %8 %9
|
||||
|
||||
cd %WXWIN%\utils\wxPython\modules
|
||||
buildall %1 %2 %3 %4 %5 %6 %7 %8 %9
|
||||
python .\buildall.py %1 %2 %3 %4 %5 %6 %7 %8 %9
|
||||
|
||||
|
||||
cd %WXWIN%\utils\wxPython
|
||||
|
@ -757,7 +757,7 @@ pycfiles : $(PYMODULES)
|
||||
|
||||
|
||||
$(TARGETDIR) :
|
||||
mkdir $(TARGETDIR)
|
||||
mkdir -p $(TARGETDIR)
|
||||
|
||||
$(GENCODEDIR):
|
||||
mkdir $(GENCODEDIR)
|
||||
@ -775,7 +775,8 @@ $(GENCODEDIR):
|
||||
#----------------------------------------------------------------------------
|
||||
|
||||
if __name__ == '__main__':
|
||||
main(sys.argv)
|
||||
err = main(sys.argv)
|
||||
sys.exit(err)
|
||||
|
||||
#----------------------------------------------------------------------------
|
||||
|
||||
|
@ -28,3 +28,4 @@ for module in MODULELIST:
|
||||
if err:
|
||||
break
|
||||
|
||||
sys.exit(err)
|
||||
|
Loading…
Reference in New Issue
Block a user