Kaydet (Commit) c78b2702 authored tarafından Christian Lohmaier's avatar Christian Lohmaier

minor whitespace/makefile cleanup

üst c35fad42
...@@ -4,39 +4,39 @@ PRJ=.. ...@@ -4,39 +4,39 @@ PRJ=..
.INCLUDE : settings.mk .INCLUDE : settings.mk
.INCLUDE : pyversion.mk .INCLUDE : pyversion.mk
ROOT=$(MISC)$/pyuno-doc ROOT=$(MISC)/pyuno-doc
FILES=\ FILES=\
$(ROOT)$/python-bridge.html \ $(ROOT)/python-bridge.html \
$(ROOT)$/customized_setup.png \ $(ROOT)/customized_setup.png \
$(ROOT)$/mode_component.png \ $(ROOT)/mode_component.png \
$(ROOT)$/mode_ipc.png \ $(ROOT)/mode_ipc.png \
$(ROOT)$/modes.sxd \ $(ROOT)/modes.sxd \
$(ROOT)$/optional_components.png \ $(ROOT)/optional_components.png \
$(ROOT)$/samples$/swriter.py \ $(ROOT)/samples/swriter.py \
$(ROOT)$/samples$/swritercomp.py \ $(ROOT)/samples/swritercomp.py \
$(ROOT)$/samples$/ooextract.py \ $(ROOT)/samples/ooextract.py \
$(ROOT)$/samples$/biblioaccess.py \ $(ROOT)/samples/biblioaccess.py \
$(ROOT)$/samples$/swritercompclient.py \ $(ROOT)/samples/swritercompclient.py \
$(ROOT)$/samples$/hello_world_pyuno.zip $(ROOT)/samples/hello_world_pyuno.zip
$(MISC)$/pyuno-doc.zip : dirs $(FILES) $(MISC)/pyuno-doc.zip : dirs $(FILES)
-rm -f $@ -rm -f $@
cd $(MISC) && zip -r pyuno-doc.zip pyuno-doc cd $(MISC) && zip -r pyuno-doc.zip pyuno-doc
dirs .PHONY :
-mkdir $(ROOT)
-mkdir $(ROOT)$/samples
dirs .PHONY :
-mkdir $(ROOT)
-mkdir $(ROOT)/samples
$(ROOT)$/samples$/hello_world_pyuno.zip : hello_world_comp.py Addons.xcu $(ROOT)/samples/hello_world_pyuno.zip : hello_world_comp.py Addons.xcu
-rm -f $@ -rm -f $@
zip $@ hello_world_comp.py Addons.xcu zip $@ hello_world_comp.py Addons.xcu
$(ROOT)$/samples$/% : % $(ROOT)/samples/% : %
-rm -f $@ -rm -f $@
cat $? > $@ $(COPY) $? $@
$(ROOT)$/% : ..$/doc$/% $(ROOT)/% : ../doc/%
-rm -f $@ -rm -f $@
cat $? > $@ $(COPY) $? $@
...@@ -43,8 +43,8 @@ def main(): ...@@ -43,8 +43,8 @@ def main():
print(filterName) print(filterName)
if not len(args): if not len(args):
usage() usage()
sys.exit() sys.exit()
ctxLocal = uno.getComponentContext() ctxLocal = uno.getComponentContext()
smgrLocal = ctxLocal.ServiceManager smgrLocal = ctxLocal.ServiceManager
......
...@@ -61,9 +61,6 @@ insertTextIntoCell( table, "B1", "SecondColumn", textColor ) ...@@ -61,9 +61,6 @@ insertTextIntoCell( table, "B1", "SecondColumn", textColor )
insertTextIntoCell( table, "C1", "ThirdColumn", textColor ) insertTextIntoCell( table, "C1", "ThirdColumn", textColor )
insertTextIntoCell( table, "D1", "SUM", textColor ) insertTextIntoCell( table, "D1", "SUM", textColor )
values = ( (22.5,21.5,121.5),
(5615.3,615.3,-615.3),
(-2315.7,315.7,415.7) )
table.getCellByName("A2").setValue(22.5) table.getCellByName("A2").setValue(22.5)
table.getCellByName("B2").setValue(5615.3) table.getCellByName("B2").setValue(5615.3)
table.getCellByName("C2").setValue(-2315.7) table.getCellByName("C2").setValue(-2315.7)
......
...@@ -62,9 +62,6 @@ class SWriterComp(XMain,unohelper.Base): ...@@ -62,9 +62,6 @@ class SWriterComp(XMain,unohelper.Base):
insertTextIntoCell( table, "C1", "ThirdColumn", textColor ) insertTextIntoCell( table, "C1", "ThirdColumn", textColor )
insertTextIntoCell( table, "D1", "SUM", textColor ) insertTextIntoCell( table, "D1", "SUM", textColor )
values = ( (22.5,21.5,121.5),
(5615.3,615.3,-615.3),
(-2315.7,315.7,415.7) )
table.getCellByName("A2").setValue(22.5) table.getCellByName("A2").setValue(22.5)
table.getCellByName("B2").setValue(5615.3) table.getCellByName("B2").setValue(5615.3)
table.getCellByName("C2").setValue(-2315.7) table.getCellByName("C2").setValue(-2315.7)
......
...@@ -24,7 +24,7 @@ ...@@ -24,7 +24,7 @@
# for a copy of the LGPLv3 License. # for a copy of the LGPLv3 License.
# #
#************************************************************************* #*************************************************************************
PRJ=..$/.. PRJ=../..
PRJNAME=pyuno PRJNAME=pyuno
TARGET=pythonloader.uno TARGET=pythonloader.uno
...@@ -47,15 +47,15 @@ DIRECT= $(LINKFLAGSDEFS) ...@@ -47,15 +47,15 @@ DIRECT= $(LINKFLAGSDEFS)
PYTHONLIB=$(PYTHON_LIBS) PYTHONLIB=$(PYTHON_LIBS)
CFLAGS+=$(PYTHON_CFLAGS) CFLAGS+=$(PYTHON_CFLAGS)
.IF "$(EXTRA_CFLAGS)"!="" .IF "$(EXTRA_CFLAGS)"!=""
PYTHONLIB+= -framework Python PYTHONLIB+=-framework Python
.ENDIF # "$(EXTRA_CFLAGS)"!="" .ENDIF # "$(EXTRA_CFLAGS)"!=""
.ELSE .ELSE
.INCLUDE : pyversion.mk .INCLUDE : pyversion.mk
CFLAGS+= -I$(SOLARINCDIR)$/python CFLAGS+=-I$(SOLARINCDIR)/python
.ENDIF .ENDIF
SHL1TARGET= $(TARGET) SHL1TARGET=$(TARGET)
SHL1STDLIBS= \ SHL1STDLIBS= \
$(CPPULIB) \ $(CPPULIB) \
...@@ -64,31 +64,31 @@ SHL1STDLIBS= \ ...@@ -64,31 +64,31 @@ SHL1STDLIBS= \
$(PYUNOLIB) \ $(PYUNOLIB) \
$(PYTHONLIB) $(PYTHONLIB)
SHL1VERSIONMAP= $(SOLARENV)$/src$/component.map SHL1VERSIONMAP=$(SOLARENV)/src/component.map
SHL1DEPN= SHL1DEPN=
SHL1IMPLIB= i$(TARGET) SHL1IMPLIB=i$(TARGET)
SHL1LIBS= $(SLB)$/$(TARGET).lib SHL1LIBS=$(SLB)/$(TARGET).lib
SHL1DEF= $(MISC)$/$(SHL1TARGET).def SHL1DEF=$(MISC)/$(SHL1TARGET).def
DEF1NAME= $(SHL1TARGET) DEF1NAME=$(SHL1TARGET)
SLOFILES= $(SLO)$/pyuno_loader.obj SLOFILES=$(SLO)/pyuno_loader.obj
# --- Targets ------------------------------------------------------ # --- Targets ------------------------------------------------------
ALL : ALLTAR \ ALL : ALLTAR \
$(DLLDEST)$/pythonloader.py $(DLLDEST)/pythonloader.py
.ENDIF # L10N_framework .ENDIF # L10N_framework
.INCLUDE : target.mk .INCLUDE : target.mk
.IF "$(L10N_framework)"=="" .IF "$(L10N_framework)"==""
$(DLLDEST)$/%.py: %.py $(DLLDEST)/%.py: %.py
cp $? $@ cp $? $@
.ENDIF # L10N_framework .ENDIF # L10N_framework
ALLTAR : $(MISC)/pythonloader.component ALLTAR : $(MISC)/pythonloader.component
$(MISC)/pythonloader.component .ERRREMOVE : \ $(MISC)/pythonloader.component .ERRREMOVE : \
$(SOLARENV)/bin/createcomponent.xslt pythonloader.component $(SOLARENV)/bin/createcomponent.xslt pythonloader.component
$(XSLTPROC) --nonet --stringparam uri \ $(XSLTPROC) --nonet --stringparam uri \
'vnd.sun.star.expand:$$OOO_BASE_DIR/program/$(SHL1TARGETN:f)' -o $@ \ 'vnd.sun.star.expand:$$OOO_BASE_DIR/program/$(SHL1TARGETN:f)' -o $@ \
$(SOLARENV)/bin/createcomponent.xslt pythonloader.component $(SOLARENV)/bin/createcomponent.xslt pythonloader.component
# -*- tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*-
#************************************************************************* #*************************************************************************
# #
# DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. # DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
...@@ -146,4 +147,6 @@ class Loader( XImplementationLoader, XServiceInfo, unohelper.Base ): ...@@ -146,4 +147,6 @@ class Loader( XImplementationLoader, XServiceInfo, unohelper.Base ):
return ServiceName in self.serviceNames return ServiceName in self.serviceNames
def getSupportedServiceNames( self ): def getSupportedServiceNames( self ):
return g_supportedServices return g_supportedServices
# vim:set shiftwidth=4 softtabstop=4 expandtab:
/*nd '!=' comparisions are defined"126G -*- Mode: C++; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- */ /* -*- Mode: C++; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- */
/************************************************************************* /*************************************************************************
* *
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
......
...@@ -24,7 +24,7 @@ ...@@ -24,7 +24,7 @@
# for a copy of the LGPLv3 License. # for a copy of the LGPLv3 License.
# #
#************************************************************************* #*************************************************************************
PRJ=..$/.. PRJ=../..
PRJNAME=pyuno PRJNAME=pyuno
TARGET=pyuno TARGET=pyuno
...@@ -64,25 +64,25 @@ PYTHONLIB=$(PYTHON_LIBS) ...@@ -64,25 +64,25 @@ PYTHONLIB=$(PYTHON_LIBS)
CFLAGS+=$(PYTHON_CFLAGS) CFLAGS+=$(PYTHON_CFLAGS)
.ELSE # "$(SYSTEM_PYTHON)" == "YES" .ELSE # "$(SYSTEM_PYTHON)" == "YES"
.INCLUDE : pyversion.mk .INCLUDE : pyversion.mk
CFLAGS+=-I$(SOLARINCDIR)$/python CFLAGS+=-I$(SOLARINCDIR)/python
.ENDIF # "$(SYSTEM_PYTHON)" == "YES" .ENDIF # "$(SYSTEM_PYTHON)" == "YES"
SHL1TARGET=$(TARGET) SHL1TARGET=$(TARGET)
SLOFILES= \ SLOFILES= \
$(SLO)$/pyuno_runtime.obj \ $(SLO)/pyuno_runtime.obj \
$(SLO)$/pyuno.obj \ $(SLO)/pyuno.obj \
$(SLO)$/pyuno_callable.obj \ $(SLO)/pyuno_callable.obj \
$(SLO)$/pyuno_module.obj \ $(SLO)/pyuno_module.obj \
$(SLO)$/pyuno_type.obj \ $(SLO)/pyuno_type.obj \
$(SLO)$/pyuno_util.obj \ $(SLO)/pyuno_util.obj \
$(SLO)$/pyuno_except.obj \ $(SLO)/pyuno_except.obj \
$(SLO)$/pyuno_adapter.obj \ $(SLO)/pyuno_adapter.obj \
$(SLO)$/pyuno_gc.obj $(SLO)/pyuno_gc.obj
# remove this, when issue i35064 is integrated # remove this, when issue i35064 is integrated
.IF "$(COM)"=="GCC" .IF "$(COM)"=="GCC"
NOOPTFILES= \ NOOPTFILES= \
$(SLO)$/pyuno_module.obj $(SLO)/pyuno_module.obj
.ENDIF # "$(COM)"=="GCC" .ENDIF # "$(COM)"=="GCC"
SHL1STDLIBS= \ SHL1STDLIBS= \
...@@ -93,13 +93,13 @@ SHL1STDLIBS= \ ...@@ -93,13 +93,13 @@ SHL1STDLIBS= \
$(EXTRA_FRAMEWORK_FLAG) $(EXTRA_FRAMEWORK_FLAG)
SHL1DEPN=$(eq,$(OS),MACOSX $(MISC)/framework_link $(NULL)) SHL1DEPN=$(eq,$(OS),MACOSX $(MISC)/framework_link $(NULL))
SHL1LIBS= $(SLB)$/$(TARGET).lib SHL1LIBS=$(SLB)/$(TARGET).lib
SHL1IMPLIB= i$(TARGET) SHL1IMPLIB=i$(TARGET)
SHL1DEF= $(MISC)$/$(SHL1TARGET).def SHL1DEF=$(MISC)/$(SHL1TARGET).def
DEF1NAME= $(SHL1TARGET) DEF1NAME=$(SHL1TARGET)
DEF1DEPN= $(MISC)$/pyuno.flt DEF1DEPN=$(MISC)/pyuno.flt
DEFLIB1NAME=$(TARGET) DEFLIB1NAME=$(TARGET)
...@@ -107,55 +107,53 @@ DEFLIB1NAME=$(TARGET) ...@@ -107,55 +107,53 @@ DEFLIB1NAME=$(TARGET)
.IF "$(GUI)$(COM)"=="WNTGCC" .IF "$(GUI)$(COM)"=="WNTGCC"
ALLTAR : \ ALLTAR : \
$(DLLDEST)$/uno.py \ $(DLLDEST)/uno.py \
$(DLLDEST)$/unohelper.py \ $(DLLDEST)/unohelper.py \
$(MISC)$/$(PYUNORC) \ $(MISC)/$(PYUNORC) \
$(LB)$/lib$(TARGET).a $(LB)/lib$(TARGET).a
$(LB)$/lib$(TARGET).a: $(MISC)$/$(TARGET).def $(LB)/lib$(TARGET).a: $(MISC)/$(TARGET).def
$(DLLTOOL) --dllname $(TARGET)$(DLLPOST) --input-def=$(MISC)$/$(TARGET).def --kill-at --output-lib=$(LB)$/lib$(TARGET).a $(DLLTOOL) --dllname $(TARGET)$(DLLPOST) --input-def=$(MISC)/$(TARGET).def --kill-at --output-lib=$(LB)/lib$(TARGET).a
.ELSE .ELSE
.IF "$(GUI)"!="WNT" .IF "$(GUI)"!="WNT"
# For some reason the build breaks on Windows if this is listed in the # For some reason the build breaks on Windows if this is listed in the
# prerequisite list of ALLTAR, but pyuno.pyd still gets produced. Go # prerequisite list of ALLTAR, but pyuno.pyd still gets produced. Go
# figure. But we need it on non-Windows. # figure. But we need it on non-Windows.
targetdll=$(LB)$/$(TARGET)$(DLLPOST) targetdll=$(LB)/$(TARGET)$(DLLPOST)
.ENDIF .ENDIF
ALLTAR : \ ALLTAR : \
$(DLLDEST)$/uno.py \ $(DLLDEST)/uno.py \
$(DLLDEST)$/unohelper.py \ $(DLLDEST)/unohelper.py \
$(targetdll) \ $(targetdll) \
$(MISC)$/$(PYUNORC) $(MISC)/$(PYUNORC)
.ENDIF .ENDIF
.ENDIF .ENDIF
.INCLUDE : target.mk .INCLUDE : target.mk
.IF "$(L10N_framework)"=="" .IF "$(L10N_framework)"==""
$(DLLDEST)$/%.py: %.py $(DLLDEST)/%.py: %.py
cp $? $@ cp $? $@
# make checkdll happy # make checkdll happy
$(MISC)/framework_link : $(MISC)/framework_link :
$(COMMAND_ECHO)ln -sf $(SOLARLIBDIR)/OOoPython.framework $(LB)/OOoPython.framework $(COMMAND_ECHO)ln -sf $(SOLARLIBDIR)/OOoPython.framework $(LB)/OOoPython.framework
@touch $@ @touch $@
$(MISC)$/$(PYUNORC) : pyuno $(MISC)/$(PYUNORC) : pyuno
-rm -f $@ -rm -f $@
cat pyuno > $@ cat pyuno > $@
$(MISC)$/pyuno.flt : pyuno.flt $(MISC)/pyuno.flt : pyuno.flt
-rm -f $@ -rm -f $@
cat $? > $@ cat $? > $@
.IF "$(DLLPRE)"!="" .IF "$(DLLPRE)"!=""
# python does not accept the "lib" prefix in the module library # python does not accept the "lib" prefix in the module library
$(LB)$/$(TARGET)$(DLLPOST) : $(LB)$/$(DLLPRE)$(TARGET)$(DLLPOST) $(LB)/$(TARGET)$(DLLPOST) : $(LB)/$(DLLPRE)$(TARGET)$(DLLPOST)
-rm -f $@ -rm -f $@
ln -s $? $@ ln -s $? $@
.ENDIF .ENDIF
.ENDIF # L10N_framework .ENDIF # L10N_framework
# vim:set shiftwidth=4 softtabstop=4 expandtab:
# -*- tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*-
#************************************************************************* #*************************************************************************
# #
# DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. # DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
...@@ -355,3 +356,5 @@ def _uno_extract_printable_stacktrace( trace ): ...@@ -355,3 +356,5 @@ def _uno_extract_printable_stacktrace( trace ):
else: else:
ret = "Couldn't import traceback module" ret = "Couldn't import traceback module"
return ret return ret
# vim:set shiftwidth=4 softtabstop=4 expandtab:
# -*- tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*-
#************************************************************************* #*************************************************************************
# #
# DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. # DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
...@@ -302,3 +303,4 @@ class _FactoryHelper_( XSingleComponentFactory, XServiceInfo, Base ): ...@@ -302,3 +303,4 @@ class _FactoryHelper_( XSingleComponentFactory, XServiceInfo, Base ):
def createInstanceWithArgumentsAndContext( self, args, context ): def createInstanceWithArgumentsAndContext( self, args, context ):
return self.clazz( context, *args ) return self.clazz( context, *args )
# vim:set shiftwidth=4 softtabstop=4 expandtab:
...@@ -43,90 +43,89 @@ systempython: ...@@ -43,90 +43,89 @@ systempython:
.INCLUDE : pyversion.mk .INCLUDE : pyversion.mk
PYDIRNAME=python-core-$(PYVERSION) PYDIRNAME=python-core-$(PYVERSION)
DESTROOT=$(BIN)$/$(PYDIRNAME) DESTROOT=$(BIN)/$(PYDIRNAME)
.IF "$(GUI)" == "UNX" .IF "$(GUI)" == "UNX"
PYTHONBINARY=$(BIN)$/python$(EXECPOST).bin PYTHONBINARY=$(BIN)/python$(EXECPOST).bin
.ELSE .ELSE
.IF "$(COM)" == "GCC" .IF "$(COM)" == "GCC"
PYTHONBINARY=$(DESTROOT)$/bin$/python.bin PYTHONBINARY=$(DESTROOT)/bin/python.bin
.ELSE .ELSE
PYTHONBINARY=$(DESTROOT)$/bin$/python$(EXECPOST) PYTHONBINARY=$(DESTROOT)/bin/python$(EXECPOST)
.ENDIF .ENDIF
.ENDIF .ENDIF
.IF "$(OS)" != "MACOSX" .IF "$(OS)" != "MACOSX"
FINDLIBFILES_TMP:=$(subst,/,$/ \ FINDLIBFILES:=$(subst,$(SOLARLIBDIR)/python, \
$(shell @$(FIND) $(SOLARLIBDIR)$/python -type f| $(GREP) -v "\.pyc" |$(GREP) -v "\.py~" |$(GREP) -v .orig | $(GREP) -v _failed)) $(shell @$(FIND) $(SOLARLIBDIR)/python -type f| $(GREP) -v "\.pyc" |$(GREP) -v "\.py~" |$(GREP) -v .orig | $(GREP) -v _failed))
FINDLIBFILES=$(subst,$(SOLARLIBDIR)$/python, $(FINDLIBFILES_TMP))
FILES=\ FILES=\
$(PYTHONBINARY) \ $(PYTHONBINARY) \
$(foreach,i,$(FINDLIBFILES) $(DESTROOT)$/lib$(i)) $(foreach,i,$(FINDLIBFILES) $(DESTROOT)/lib$(i))
.IF "$(OS)" == "WNT" .IF "$(OS)" == "WNT"
APP1TARGET = python APP1TARGET=python
APP1OBJS = $(OBJFILES) $(SOLARLIBDIR)$/pathutils-obj.obj APP1OBJS=$(OBJFILES) $(SOLARLIBDIR)/pathutils-obj.obj
APP1STDLIBS = APP1STDLIBS=
APP1RPATH = BRAND APP1RPATH=BRAND
OBJFILES = $(OBJ)$/python.obj OBJFILES=$(OBJ)/python.obj
.ENDIF .ENDIF
.INCLUDE: target.mk .INCLUDE: target.mk
ALLTAR: \ ALLTAR: \
$(BIN)$/$(PYDIRNAME).zip $(BIN)/$(PYDIRNAME).zip
.ENDIF .ENDIF
.IF "$(GUI)" == "UNX" .IF "$(GUI)" == "UNX"
ALLTAR : $(BIN)$/python.sh ALLTAR : $(BIN)/python.sh
STRIPMAC=-e '/^NONMACSECTION/d' -e '/^MACSECTION/,$$d' STRIPMAC=-e '/^NONMACSECTION/d' -e '/^MACSECTION/,$$d'
STRIPNONMAC=-e '/^NONMACSECTION/,/^MACSECTION/d' STRIPNONMAC=-e '/^NONMACSECTION/,/^MACSECTION/d'
$(BIN)$/python.sh : python.sh $(BIN)/python.sh : python.sh
$(COMMAND_ECHO)sed -e 's/%%PYVERSION%%/$(eq,$(OS),MACOSX $(PYMAJOR).$(PYMINOR) $(PYVERSION))/g' -e 's/%%OOO_LIBRARY_PATH_VAR%%/$(OOO_LIBRARY_PATH_VAR)/g' \ $(COMMAND_ECHO)sed -e 's/%%PYVERSION%%/$(eq,$(OS),MACOSX $(PYMAJOR).$(PYMINOR) $(PYVERSION))/g' -e 's/%%OOO_LIBRARY_PATH_VAR%%/$(OOO_LIBRARY_PATH_VAR)/g' \
$(eq,$(OS),MACOSX $(STRIPNONMAC) $(STRIPMAC)) < $? > $@ $(eq,$(OS),MACOSX $(STRIPNONMAC) $(STRIPMAC)) < $? > $@
@chmod +x $@ @chmod +x $@
.ENDIF .ENDIF
$(OBJ)$/python.obj: $(OUT)$/inc$/pyversion.hxx $(OBJ)/python.obj: $(OUT)/inc/pyversion.hxx
$(OUT)$/inc$/pyversion.hxx: pyversion.inc $(OUT)/inc/pyversion.hxx: pyversion.inc
$(SED) $(USQ)s/@/$(PYVERSION)/g$(USQ) < $< > $@ $(SED) $(USQ)s/@/$(PYVERSION)/g$(USQ) < $< > $@
$(BIN)$/$(PYDIRNAME).zip : $(FILES) $(BIN)/$(PYDIRNAME).zip : $(FILES)
.IF "$(GUI)" == "UNX" .IF "$(GUI)" == "UNX"
.IF "$(OS)" != "AIX" .IF "$(OS)" != "AIX"
cd $(DESTROOT) && find . -name '*$(DLLPOST)' | xargs strip cd $(DESTROOT) && find . -name '*$(DLLPOST)' | xargs strip
.ENDIF .ENDIF
.ENDIF .ENDIF
-rm -f $@ -rm -f $@
cd $(BIN) && zip -r $(PYDIRNAME).zip $(PYDIRNAME) cd $(BIN) && zip -r $(PYDIRNAME).zip $(PYDIRNAME)
$(DESTROOT)$/lib$/% : $(SOLARLIBDIR)$/python$/% $(DESTROOT)/lib/% : $(SOLARLIBDIR)/python/%
-$(MKDIRHIER) $(@:d) -$(MKDIRHIER) $(@:d)
-rm -f $@ -rm -f $@
cat $< > $@ cat $< > $@
.IF "$(GUI)"== "UNX" .IF "$(GUI)"== "UNX"
$(BIN)$/python$(EXECPOST).bin : $(SOLARBINDIR)$/python$(EXECPOST) $(BIN)/python$(EXECPOST).bin : $(SOLARBINDIR)/python$(EXECPOST)
-$(MKDIRHIER) $(@:d) -$(MKDIRHIER) $(@:d)
-rm -f $@ -rm -f $@
cat $< > $@ cat $< > $@
.IF "$(OS)" != "MACOSX" && "$(OS)" != "AIX" .IF "$(OS)" != "MACOSX" && "$(OS)" != "AIX"
strip $@ strip $@
.ENDIF .ENDIF
chmod +x $@ chmod +x $@
.ELSE .ELSE
.IF "$(COM)" == "GCC" .IF "$(COM)" == "GCC"
$(DESTROOT)$/bin$/python.bin : $(SOLARBINDIR)$/python$(EXECPOST) $(DESTROOT)/bin/python.bin : $(SOLARBINDIR)/python$(EXECPOST)
.ELSE .ELSE
$(DESTROOT)$/bin$/python$(EXECPOST) : $(SOLARBINDIR)$/python$(EXECPOST) $(DESTROOT)/bin/python$(EXECPOST) : $(SOLARBINDIR)/python$(EXECPOST)
.ENDIF .ENDIF
-$(MKDIRHIER) $(@:d) -$(MKDIRHIER) $(@:d)
-rm -f $@ -rm -f $@
cat $< > $@ cat $< > $@
.ENDIF .ENDIF
.ENDIF .ENDIF
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment