5 .INCLUDE
: pyversion.mk
7 ROOT
=$(MISC
)$/pyuno-doc
11 $(ROOT
)$/python-bridge.html \
12 $(ROOT
)$/customized_setup.png \
13 $(ROOT
)$/mode_component.png \
14 $(ROOT
)$/mode_ipc.png \
16 $(ROOT
)$/optional_components.png \
17 $(ROOT
)$/samples
$/swriter.py \
18 $(ROOT
)$/samples
$/swritercomp.py \
19 $(ROOT
)$/samples
$/ooextract.py \
20 $(ROOT
)$/samples
$/biblioaccess.py \
21 $(ROOT
)$/samples
$/swritercompclient.py \
22 $(ROOT
)$/samples
$/hello_world_pyuno.zip
26 $(MISC
)$/pyuno-doc.zip
: dirs
$(FILES
)
28 cd
$(MISC
) && zip
-r pyuno-doc.zip pyuno-doc
31 -mkdir
$(ROOT
)$/samples
34 $(ROOT
)$/samples
$/hello_world_pyuno.zip
: hello_world_comp.py Addons.xcu
36 zip
$@ hello_world_comp.py Addons.xcu
38 $(ROOT
)$/samples
$/% : %
42 $(ROOT
)$/% : ..
$/doc
$/%
47 #PYDIRNAME=python-$(PYVERSION)
64 #PYUNOMODULE=$(DESTROOT)$/program$/pyuno$(DLLPOST)
65 #PYTHONLIBRARY=$(DESTROOT)$/program$/$(DLLPRE)python$(DLLPOST).$(PYVERSION)
66 #PYRUNTIMELINK=$(DESTROOT)$/program$/python
67 #PYRUNTIMELIBLINK1=$(DESTROOT)$/program$/libpython.so.2
68 #PYRUNTIMELIBLINK2=$(DESTROOT)$/program$/libpython.so
70 #.IF "$(OS)$(CPU)"=="SOLARISS"
71 #PLATFORM=solaris-sparc
72 #.ELIF "$(OS)$(CPU)"=="SOLARISI"
74 #.ELIF "$(OS)$(CPU)"=="LINUXI"
76 #.ELIF "$(OS)$(CPU)"=="LINUXP"
79 #error please add your platform
84 #DESTROOT=$(BIN)$/root
86 #FINDDIRS=$(subst,/,$/ $(shell +cd $(SOLARLIBDIR)$/python && $(FIND) . -type d))
87 #FINDLIBFILES=$(subst,/,$/ $(shell +cd $(SOLARLIBDIR)$/python && $(FIND) . -type f))
91 # $(DESTROOT)$/program \
92 # $(DESTROOT)$/program/pydemo \
93 # $(DESTROOT)$/program$/$(PYDIRNAME) \
94 # $(DESTROOT)$/program$/$(PYDIRNAME)$/bin \
95 # $(DESTROOT)$/program$/$(PYDIRNAME)$/lib \
96 # $(foreach,i,$(FINDDIRS) $(DESTROOT)$/program$/$(PYDIRNAME)$/lib$/$(i))
100 # $(DESTROOT)$/program$/$(DLLPRE)pyuno$(DLLPOST) \
101 # $(DESTROOT)$/program$/pythonloader.uno$(DLLPOST) \
102 # $(DESTROOT)$/program$/pyuno$(INISUFFIX) \
103 # $(DESTROOT)$/program$/uno.py \
104 # $(DESTROOT)$/program$/unohelper.py \
105 # $(DESTROOT)$/program$/pythonloader.py \
106 # $(DESTROOT)$/program$/pyuno_setup$(BATCHSUFFIX) \
107 # $(DESTROOT)$/program$/regcomp$(EXESUFFIX) \
108 # $(DESTROOT)$/program$/pyunoenv$(ENVSUFFIX) \
109 # $(DESTROOT)$/program$/pydemo$/biblioaccess.py \
110 # $(DESTROOT)$/program$/pydemo$/ooextract.py \
111 # $(DESTROOT)$/program$/pydemo$/swriter.py \
112 # $(DESTROOT)$/program$/pydemo$/swritercomp.py \
113 # $(DESTROOT)$/program$/pydemo$/swritercompclient.py \
114 # $(DESTROOT)$/program$/pydemo$/swritercompclient.py \
115 # $(DESTROOT)$/program$/pydemo$/python-bridge.html \
118 # $(DESTROOT)$/program$/$(PYDIRNAME)$/bin$/python$(EXESUFFIX) \
119 # $(foreach,i,$(FINDLIBFILES) $(DESTROOT)$/program$/$(PYDIRNAME)$/lib$/$(i)) \
121 # $(PYRUNTIMELIBLINK1) \
122 # $(PYRUNTIMELIBLINK2)
126 #$(BIN)$/pyuno-$(PLATFORM)-$(PYVERSION)$(PACKSUFFIX) : makefile.mk dirs $(FILES)
129 # +cd $(DESTROOT) && zip -r ..$/pyuno-$(PLATFORM)-$(VERSION)$(PACKSUFFIX) program
131 # $(FIND) $(DESTROOT) -name '*.so' | xargs strip
132 # cd $(DESTROOT) && tar -cO program | gzip - > ..$/pyuno-$(PLATFORM)-$(VERSION)$(PACKSUFFIX)
137 # -mkdir $(PYRUNTIME_DIRS)
139 ## Some symbolic links for unix
140 #.IF "$(GUI)" == "UNX"
141 #$(PYRUNTIMELINK) : makefile.mk
143 # cd $(DESTROOT)$/program && ln -s $(PYDIRNAME) python
145 #$(PYRUNTIMELIBLINK1) : makefile.mk
147 # cd $(DESTROOT)$/program && ln -s $(DLLPRE)python$(DLLPOST).$(PYVERSION) $(DLLPRE)python$(DLLPOST).$(PYMAJOR)
149 #$(PYRUNTIMELIBLINK2) : makefile.mk
151 # cd $(DESTROOT)$/program && ln -s $(DLLPRE)python$(DLLPOST).$(PYVERSION) $(DLLPRE)python$(DLLPOST)
154 #$(DESTROOT)$/program$/regcomp$(EXESUFFIX) : $(SOLARBINDIR)$/regcomp$(EXESUFFIX)
156 #.IF "$(GUI)" == "UNX"
162 #$(DESTROOT)$/program$/pyunoenv$(ENVSUFFIX) : pyunoenv$(ENVSUFFIX)
166 #$(DESTROOT)$/program$/$(DLLPRE)pyuno$(DLLPOST) : $(DLLDEST)$/$(DLLPRE)pyuno$(DLLPOST)
169 #$(DESTROOT)$/program$/pyuno_setup$(BATCHSUFFIX) : makefile.mk
172 # echo #\!/bin/sh >> $@
175 # echo regcomp -register -r services.rdb -c pythonloader.uno >>$@
176 ## echo "$(MYCOPY) applicat.rdb pydemo$/applicat.rdb" >> $@
177 # echo regcomp -register -br types.rdb -br services.rdb -r services.rdb -c vnd.openoffice.pymodule:swritercomp -l com.sun.star.loader.Python >>$@
179 #$(DESTROOT)$/program$/$(DLLPRE)python$(DLLPOST).$(PYVERSION) : $(SOLARLIBDIR)$/$(DLLPRE)python$(DLLPOST).$(PYVERSION)
182 #$(DESTROOT)$/program$/pythonloader.uno$(DLLPOST) : $(DLLDEST)$/pythonloader.uno$(DLLPOST)
185 #$(DESTROOT)$/program$/%.py : $(DLLDEST)$/%.py
188 #.IF "$(GUI)" == "UNX"
189 #$(DESTROOT)$/program$/pyuno$(DLLPOST) : $(DLLDEST)$/pyuno$(DLLPOST)
193 #$(DESTROOT)$/program$/pydemo$/%.py : %.py
197 #$(DESTROOT)$/program$/pyuno$(INISUFFIX) : makefile.mk
198 # -rm -f $@ $(DESTROOT)$/program$/pyuno.tmp
199 # echo UNO_TYPES=$(DOLLAR_SIGN)PYUNOLIBDIR/types.rdb > $(DESTROOT)$/program$/pyuno.tmp
200 # echo UNO_SERVICES=$(DOLLAR_SIGN)PYUNOLIBDIR/services.rdb >> $(DESTROOT)$/program$/pyuno.tmp
201 # mv $(DESTROOT)$/program$/pyuno.tmp $@
203 #$(DESTROOT)$/program$/pydemo$/python-bridge.html : ..$/doc$/python-bridge.html
208 # $(DESTROOT)$/program$/$(PYDIRNAME)$/lib$/%.so : $(SOLARLIBDIR)$/python$/%.so
213 #$(DESTROOT)$/program$/$(PYDIRNAME)$/lib$/% : $(SOLARLIBDIR)$/python$/%
218 #$(DESTROOT)$/program$/$(PYDIRNAME)$/bin$/python$(EXESUFFIX) : $(SOLARBINDIR)$/python$(EXESUFFIX)
221 #.IF "$(GUI)" == "UNX"