merge the formfield patch from ooo-build
[ooovba.git] / pyuno / demo / makefile.mk
blobf328ac5a6ddc622f40d71a6582a765911d624ad8
1 PRJNAME=pyuno
2 PRJ=..
4 .INCLUDE : settings.mk
5 .INCLUDE : pyversion.mk
7 ROOT=$(MISC)$/pyuno-doc
10 FILES=\
11 $(ROOT)$/python-bridge.html \
12 $(ROOT)$/customized_setup.png \
13 $(ROOT)$/mode_component.png \
14 $(ROOT)$/mode_ipc.png \
15 $(ROOT)$/modes.sxd \
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)
27 -rm -f $@
28 cd $(MISC) && zip -r pyuno-doc.zip pyuno-doc
29 dirs .PHONY :
30 -mkdir $(ROOT)
31 -mkdir $(ROOT)$/samples
34 $(ROOT)$/samples$/hello_world_pyuno.zip : hello_world_comp.py Addons.xcu
35 -rm -f $@
36 zip $@ hello_world_comp.py Addons.xcu
38 $(ROOT)$/samples$/% : %
39 -rm -f $@
40 cat $? > $@
42 $(ROOT)$/% : ..$/doc$/%
43 -rm -f $@
44 cat $? > $@
46 #VERSION=0.9.4
47 #PYDIRNAME=python-$(PYVERSION)
48 #.IF "$(GUI)"=="WNT"
49 #INISUFFIX=.ini
50 #BATCHSUFFIX=.bat
51 #ENVSUFFIX=.bat
52 #PLATFORM=win32
53 #EXESUFFIX=.exe
54 #PACKSUFFIX=.zip
55 #MYCOPY=copy
56 #DOLLAR_SIGN=$$
57 #.ELSE
58 #DOLLAR_SIGN=\$$
59 #PACKSUFFIX=.tar.gz
60 #MYCOPY=cp
61 #BATCHSUFFIX=.sh
62 #ENVSUFFIX=.tcsh
63 #INISUFFIX=rc
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"
73 #PLATFORM=solaris-x86
74 #.ELIF "$(OS)$(CPU)"=="LINUXI"
75 #PLATFORM=linux-x86
76 #.ELIF "$(OS)$(CPU)"=="LINUXP"
77 #PLATFORM=linux-ppc
78 #.ELSE
79 #error please add your platform
80 #.ENDIF
82 #.ENDIF
84 #DESTROOT=$(BIN)$/root
86 #FINDDIRS=$(subst,/,$/ $(shell +cd $(SOLARLIBDIR)$/python && $(FIND) . -type d))
87 #FINDLIBFILES=$(subst,/,$/ $(shell +cd $(SOLARLIBDIR)$/python && $(FIND) . -type f))
89 #PYRUNTIME_DIRS=\
90 # $(DESTROOT) \
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))
99 #FILES=\
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 \
116 # $(PYUNOMODULE) \
117 # $(PYTHONLIBRARY) \
118 # $(DESTROOT)$/program$/$(PYDIRNAME)$/bin$/python$(EXESUFFIX) \
119 # $(foreach,i,$(FINDLIBFILES) $(DESTROOT)$/program$/$(PYDIRNAME)$/lib$/$(i)) \
120 # $(PYRUNTIMELINK) \
121 # $(PYRUNTIMELIBLINK1) \
122 # $(PYRUNTIMELIBLINK2)
126 #$(BIN)$/pyuno-$(PLATFORM)-$(PYVERSION)$(PACKSUFFIX) : makefile.mk dirs $(FILES)
127 # -rm $@
128 #.IF "$(GUI)"=="WNT"
129 # +cd $(DESTROOT) && zip -r ..$/pyuno-$(PLATFORM)-$(VERSION)$(PACKSUFFIX) program
130 #.ELSE
131 # $(FIND) $(DESTROOT) -name '*.so' | xargs strip
132 # cd $(DESTROOT) && tar -cO program | gzip - > ..$/pyuno-$(PLATFORM)-$(VERSION)$(PACKSUFFIX)
133 #.ENDIF
136 #dirs .PHONY:
137 # -mkdir $(PYRUNTIME_DIRS)
139 ## Some symbolic links for unix
140 #.IF "$(GUI)" == "UNX"
141 #$(PYRUNTIMELINK) : makefile.mk
142 # -rm -f $@
143 # cd $(DESTROOT)$/program && ln -s $(PYDIRNAME) python
145 #$(PYRUNTIMELIBLINK1) : makefile.mk
146 # -rm -f $@
147 # cd $(DESTROOT)$/program && ln -s $(DLLPRE)python$(DLLPOST).$(PYVERSION) $(DLLPRE)python$(DLLPOST).$(PYMAJOR)
149 #$(PYRUNTIMELIBLINK2) : makefile.mk
150 # -rm -f $@
151 # cd $(DESTROOT)$/program && ln -s $(DLLPRE)python$(DLLPOST).$(PYVERSION) $(DLLPRE)python$(DLLPOST)
152 #.ENDIF
154 #$(DESTROOT)$/program$/regcomp$(EXESUFFIX) : $(SOLARBINDIR)$/regcomp$(EXESUFFIX)
155 # cp $? $@
156 #.IF "$(GUI)" == "UNX"
157 # strip $@
158 # chmod +x $@
159 #.ENDIF
162 #$(DESTROOT)$/program$/pyunoenv$(ENVSUFFIX) : pyunoenv$(ENVSUFFIX)
163 # -rm -f $@
164 # cat $? > $@
166 #$(DESTROOT)$/program$/$(DLLPRE)pyuno$(DLLPOST) : $(DLLDEST)$/$(DLLPRE)pyuno$(DLLPOST)
167 # cp $? $@
169 #$(DESTROOT)$/program$/pyuno_setup$(BATCHSUFFIX) : makefile.mk
170 # -rm -f $@
171 #.IF "$(GUI)"!="WNT"
172 # echo #\!/bin/sh >> $@
173 # chmod +x $@
174 #.ENDIF
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)
180 # cp $? $@
182 #$(DESTROOT)$/program$/pythonloader.uno$(DLLPOST) : $(DLLDEST)$/pythonloader.uno$(DLLPOST)
183 # cp $? $@
185 #$(DESTROOT)$/program$/%.py : $(DLLDEST)$/%.py
186 # cp $? $@
188 #.IF "$(GUI)" == "UNX"
189 #$(DESTROOT)$/program$/pyuno$(DLLPOST) : $(DLLDEST)$/pyuno$(DLLPOST)
190 # cp $? $@
191 #.ENDIF
193 #$(DESTROOT)$/program$/pydemo$/%.py : %.py
194 # -rm -f $@
195 # cat $? > $@
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
204 # -rm -f $@
205 # cat $? > $@
208 # $(DESTROOT)$/program$/$(PYDIRNAME)$/lib$/%.so : $(SOLARLIBDIR)$/python$/%.so
209 # -rm -f $@
210 # cat $? > $@
211 # strip $@
213 #$(DESTROOT)$/program$/$(PYDIRNAME)$/lib$/% : $(SOLARLIBDIR)$/python$/%
214 # -rm -f $@
215 # cat $? > $@
218 #$(DESTROOT)$/program$/$(PYDIRNAME)$/bin$/python$(EXESUFFIX) : $(SOLARBINDIR)$/python$(EXESUFFIX)
219 # -rm -f $@
220 # cat $? > $@
221 #.IF "$(GUI)" == "UNX"
222 # strip $@
223 # chmod +x $@
224 #.ENDIF