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:
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
|
#!/bin/bash
|
||||||
cd src
|
cd src
|
||||||
build $*
|
python ../distrib/build.py $*
|
||||||
if [ "$?" != "0" ]; then
|
if [ "$?" != "0" ]; then
|
||||||
exit 1
|
exit 1
|
||||||
fi
|
fi
|
||||||
|
|
||||||
cd ../modules
|
cd ../modules
|
||||||
buildall.py $*
|
python buildall.py $*
|
||||||
cd ..
|
cd ..
|
||||||
|
|
||||||
|
@@ -1,9 +1,9 @@
|
|||||||
|
|
||||||
cd %WXWIN%\utils\wxPython\src
|
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
|
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
|
cd %WXWIN%\utils\wxPython
|
||||||
|
@@ -757,7 +757,7 @@ pycfiles : $(PYMODULES)
|
|||||||
|
|
||||||
|
|
||||||
$(TARGETDIR) :
|
$(TARGETDIR) :
|
||||||
mkdir $(TARGETDIR)
|
mkdir -p $(TARGETDIR)
|
||||||
|
|
||||||
$(GENCODEDIR):
|
$(GENCODEDIR):
|
||||||
mkdir $(GENCODEDIR)
|
mkdir $(GENCODEDIR)
|
||||||
@@ -775,7 +775,8 @@ $(GENCODEDIR):
|
|||||||
#----------------------------------------------------------------------------
|
#----------------------------------------------------------------------------
|
||||||
|
|
||||||
if __name__ == '__main__':
|
if __name__ == '__main__':
|
||||||
main(sys.argv)
|
err = main(sys.argv)
|
||||||
|
sys.exit(err)
|
||||||
|
|
||||||
#----------------------------------------------------------------------------
|
#----------------------------------------------------------------------------
|
||||||
|
|
||||||
|
@@ -28,3 +28,4 @@ for module in MODULELIST:
|
|||||||
if err:
|
if err:
|
||||||
break
|
break
|
||||||
|
|
||||||
|
sys.exit(err)
|
||||||
|
Reference in New Issue
Block a user