Commit 0448e0a7 authored by Claes's avatar Claes Committed by Esteban Blanc

pwre build generating test log file

parent 314950e0
#!/bin/bash #!/bin/bash
set -e set -e
exec > >(tee compilation_log.txt) exec > >(tee build.log)
exec 2>&1 exec 2>&1
root=`eval pwd` root=`eval pwd`
...@@ -102,7 +102,7 @@ if [ "$buildversion" != "" ]; then ...@@ -102,7 +102,7 @@ if [ "$buildversion" != "" ]; then
fi fi
pwre configure --parallel pwre configure --parallel
pwre create_all_modules pwre create_all_modules
pwre build_all_modules $gui pwre build_all_modules $gui
#pwre build_kernel $gui #pwre build_kernel $gui
#pwre method_build $gui #pwre method_build $gui
......
...@@ -167,6 +167,6 @@ local_java_sources := \ ...@@ -167,6 +167,6 @@ local_java_sources := \
exe : $(doc_dir)/en_us/jprm/index.html exe : $(doc_dir)/en_us/jprm/index.html
$(doc_dir)/en_us/jprm/index.html : $(doc_dir)/en_us/jprm/index.html :
@ echo "Generating javadoc for rt, jop and jopg" @ $(log_gen)
@ if [ ! -e $(doc_dir)/en_us/jprm ]; then mkdir $(doc_dir)/en_us/jprm; fi @ if [ ! -e $(doc_dir)/en_us/jprm ]; then mkdir $(doc_dir)/en_us/jprm; fi
@ javadoc -Xdoclint:none -d $(doc_dir)/en_us/jprm $(pwre_sroot)/jpwr/rt/src/*.java $(pwre_sroot)/jpwr/jop/src/*.java $(pwre_sroot)/jpwr/jopg/src/*.java @ javadoc -Xdoclint:none -d $(doc_dir)/en_us/jprm $(pwre_sroot)/jpwr/rt/src/*.java $(pwre_sroot)/jpwr/jop/src/*.java $(pwre_sroot)/jpwr/jopg/src/*.java
...@@ -6,9 +6,9 @@ copy : $(doc_dir)/sv_se/orm/misc_plc_c.html \ ...@@ -6,9 +6,9 @@ copy : $(doc_dir)/sv_se/orm/misc_plc_c.html \
$(doc_dir)/en_us/orm/misc_plc_c.html $(doc_dir)/en_us/orm/misc_plc_c.html
$(doc_dir)/sv_se/orm/misc_plc_c.html : misc_plc.c $(doc_dir)/sv_se/orm/misc_plc_c.html : misc_plc.c
@ echo "Generating html files for misc_plc sv_se..." @ $(log_html)
@ $(co_convert) -c -d $(doc_dir)/sv_se/orm "$(source)" @ $(co_convert) -c -d $(doc_dir)/sv_se/orm "$(source)"
$(doc_dir)/en_us/orm/misc_plc_c.html : misc_plc.c $(doc_dir)/en_us/orm/misc_plc_c.html : misc_plc.c
@ echo "Generating html files for misc_plc en_us..." @ $(log_html)
@ $(co_convert) -c -d $(doc_dir)/en_us/orm "$(source)" @ $(co_convert) -c -d $(doc_dir)/en_us/orm "$(source)"
...@@ -19,5 +19,5 @@ $(bld_dir)/stdsoap2.o : stdsoap2.cpp ...@@ -19,5 +19,5 @@ $(bld_dir)/stdsoap2.o : stdsoap2.cpp
$(inc_dir)/stdsoap2.h : stdsoap2.h $(inc_dir)/stdsoap2.h : stdsoap2.h
$(inc_dir)/Service.nsmap : Service.nsmap $(inc_dir)/Service.nsmap : Service.nsmap
@ echo "Export $(source)" @ $(log_exp)
@ $(cp) $(cpflags) $(source) $(target) @ $(cp) $(cpflags) $(source) $(target)
...@@ -31,5 +31,5 @@ silent : ...@@ -31,5 +31,5 @@ silent :
.SUFFIXES: .SUFFIXES:
$(inc_dir)/objdict.h : objdict.h $(inc_dir)/objdict.h : objdict.h
@ echo "Copying objdict.h" @ $(log_cp)
@ $(cp) $(cpflags) $(source) $(target) @ $(cp) $(cpflags) $(source) $(target)
...@@ -35,17 +35,17 @@ silent : ...@@ -35,17 +35,17 @@ silent :
# @ $(cp) $(cpflags) $(source) $(target) # @ $(cp) $(cpflags) $(source) $(target)
$(inc_dir)/libusbio.h : libusbio.h $(inc_dir)/libusbio.h : libusbio.h
@ echo "Copying libusbio.h" @ $(log_cp)
@ $(cp) $(cpflags) $(source) $(target) @ $(cp) $(cpflags) $(source) $(target)
$(inc_dir)/openSocket.h : openSocket.h $(inc_dir)/openSocket.h : openSocket.h
@ echo "Copying openSocket.h" @ $(log_cp)
@ $(cp) $(cpflags) $(source) $(target) @ $(cp) $(cpflags) $(source) $(target)
$(inc_dir)/setport.h : setport.h $(inc_dir)/setport.h : setport.h
@ echo "Copying setport.h" @ $(log_cp)
@ $(cp) $(cpflags) $(source) $(target) @ $(cp) $(cpflags) $(source) $(target)
$(inc_dir)/pwr_arduino_uno.ino : pwr_arduino_uno.ino $(inc_dir)/pwr_arduino_uno.ino : pwr_arduino_uno.ino
@ echo "Copying pwr_arduino_uno.ino" @ $(log_cp)
@ $(cp) $(cpflags) $(source) $(target) @ $(cp) $(cpflags) $(source) $(target)
...@@ -46,7 +46,7 @@ silent : ...@@ -46,7 +46,7 @@ silent :
@ : @ :
$(export_xdd) : $(exe_dir)/%.xdd : %.xdd $(export_xdd) : $(exe_dir)/%.xdd : %.xdd
@ echo "Exporting $< ..." @ $(log_exp)
@ $(cp) $(cpflags) $(source) $(target) @ $(cp) $(cpflags) $(source) $(target)
$(clean_xdd) : clean_%.xdd : %.xdd $(clean_xdd) : clean_%.xdd : %.xdd
......
...@@ -70,21 +70,21 @@ silent : ...@@ -70,21 +70,21 @@ silent :
@ : @ :
$(export_gsd) : $(exe_dir)/%.gsd : %.gsd $(export_gsd) : $(exe_dir)/%.gsd : %.gsd
@ echo "Exporting $< ..." @ $(log_exp)
@ $(cp) $(cpflags) $(source) $(target) @ $(cp) $(cpflags) $(source) $(target)
$(clean_gsd) : clean_%.gsd : %.gsd $(clean_gsd) : clean_%.gsd : %.gsd
@ rm $(exe_dir)/$*.gsd @ rm $(exe_dir)/$*.gsd
$(export_gse) : $(exe_dir)/%.gse : %.gse $(export_gse) : $(exe_dir)/%.gse : %.gse
@ echo "Exporting $< ..." @ $(log_exp)
@ $(cp) $(cpflags) $(source) $(target) @ $(cp) $(cpflags) $(source) $(target)
$(clean_gse) : clean_%.gse : %.gse $(clean_gse) : clean_%.gse : %.gse
@ rm $(exe_dir)/$*.gse @ rm $(exe_dir)/$*.gse
$(export_xml) : $(exe_dir)/%.xml : %.xml $(export_xml) : $(exe_dir)/%.xml : %.xml
@ echo "Exporting $< ..." @ $(log_exp)
@ $(cp) $(cpflags) $(source) $(target) @ $(cp) $(cpflags) $(source) $(target)
$(clean_xml) : clean_%.xml : %.xml $(clean_xml) : clean_%.xml : %.xml
......
...@@ -80,16 +80,16 @@ $(exe_dir)/%.wav : %.wav ...@@ -80,16 +80,16 @@ $(exe_dir)/%.wav : %.wav
@ $(cp) $(cpflags) $(source) $(target) @ $(cp) $(cpflags) $(source) $(target)
$(exe_dir)/profibus_xtthelp.dat : profibus_xtthelp.dat $(exe_dir)/profibus_xtthelp.dat : profibus_xtthelp.dat
@ echo "Copying $(source)" @ $(log_cp)
@ $(cp) $(cpflags) $(source) $(target) @ $(cp) $(cpflags) $(source) $(target)
@ $(co_convert) -t -d $(pwr_doc)/help $(source) @ $(co_convert) -t -d $(pwr_doc)/help $(source)
$(exe_dir)/%.gif : %.gif $(exe_dir)/%.gif : %.gif
@ echo "Copying $(source).gif exe" @ $(log_cp)
@ $(cp) $(cpflags) $(source) $(target) @ $(cp) $(cpflags) $(source) $(target)
$(doc_dir)/help/%.gif : %.gif $(doc_dir)/help/%.gif : %.gif
@ echo "Copying $(source).gif doc/help" @ $(log_cp)
@ $(cp) $(cpflags) $(source) $(target) @ $(cp) $(cpflags) $(source) $(target)
......
...@@ -31,9 +31,9 @@ silent : ...@@ -31,9 +31,9 @@ silent :
.SUFFIXES: .SUFFIXES:
$(exe_dir)/pb_module_classes.dat : pb_module_classes.dat $(exe_dir)/pb_module_classes.dat : pb_module_classes.dat
@ echo "Copying $(source)" @ $(log_cp)
@ $(cp) $(cpflags) $(source) $(target) @ $(cp) $(cpflags) $(source) $(target)
$(exe_dir)/pn_module_classes.dat : pn_module_classes.dat $(exe_dir)/pn_module_classes.dat : pn_module_classes.dat
@ echo "Copying $(source)" @ $(log_cp)
@ $(cp) $(cpflags) $(source) $(target) @ $(cp) $(cpflags) $(source) $(target)
...@@ -22,7 +22,7 @@ export_c := $(addprefix $(bld_dir)/, $(patsubst %.c, %.o, $(c_sources))) ...@@ -22,7 +22,7 @@ export_c := $(addprefix $(bld_dir)/, $(patsubst %.c, %.o, $(c_sources)))
lib : $(export_lib) export_lib_local lib : $(export_lib) export_lib_local
export_lib_local : $(export_c) export_lib_local : $(export_c)
@ echo "Inserting local lib" @ $(log_lib)
@ if [ "$(export_c)" != "" ]; then \ @ if [ "$(export_c)" != "" ]; then \
$(ar) -r $(export_lib) $(export_c); \ $(ar) -r $(export_lib) $(export_c); \
fi fi
...@@ -57,11 +57,11 @@ silent : ...@@ -57,11 +57,11 @@ silent :
@ : @ :
$(export_py) : $(exe_dir)/%.py : %.py $(export_py) : $(exe_dir)/%.py : %.py
@ echo "Exporting $< ..." @ $(log_exp)
@ $(cp) $(cpflags) $(source) $(target) @ $(cp) $(cpflags) $(source) $(target)
$(export_png) : $(exe_dir)/%.png : %.png $(export_png) : $(exe_dir)/%.png : %.png
@ echo "Exporting $< ..." @ $(log_exp)
@ $(cp) $(cpflags) $(source) $(target) @ $(cp) $(cpflags) $(source) $(target)
$(clean_py) : clean_%.py : %.py $(clean_py) : clean_%.py : %.py
......
...@@ -6,9 +6,9 @@ copy : $(doc_dir)/sv_se/orm/simul_c.html \ ...@@ -6,9 +6,9 @@ copy : $(doc_dir)/sv_se/orm/simul_c.html \
$(doc_dir)/en_us/orm/simul_c.html $(doc_dir)/en_us/orm/simul_c.html
$(doc_dir)/sv_se/orm/simul_c.html : simul.c $(doc_dir)/sv_se/orm/simul_c.html : simul.c
@ echo "Generating html files for simul sv_se..." @ $(log_html)
@ $(co_convert) -c -d $(doc_dir)/sv_se/orm "$(source)" @ $(co_convert) -c -d $(doc_dir)/sv_se/orm "$(source)"
$(doc_dir)/en_us/orm/simul_c.html : simul.c $(doc_dir)/en_us/orm/simul_c.html : simul.c
@ echo "Generating html files for simul en_us..." @ $(log_html)
@ $(co_convert) -c -d $(doc_dir)/en_us/orm "$(source)" @ $(co_convert) -c -d $(doc_dir)/en_us/orm "$(source)"
...@@ -8,17 +8,17 @@ exe : $(doc_dir)/sv_se/orm/pwr_simulclasses_h.html \ ...@@ -8,17 +8,17 @@ exe : $(doc_dir)/sv_se/orm/pwr_simulclasses_h.html \
$(doc_dir)/en_us/orm/pwr_simulclasses_hpp.html $(doc_dir)/en_us/orm/pwr_simulclasses_hpp.html
$(doc_dir)/sv_se/orm/pwr_simulclasses_h.html : $(inc_dir)/pwr_simulclasses.h $(doc_dir)/sv_se/orm/pwr_simulclasses_h.html : $(inc_dir)/pwr_simulclasses.h
@ echo "Generating html files for struct sv_se..." @ $(log_html)
@ $(co_convert) -c -d $(doc_dir)/sv_se/orm "$(source)" @ $(co_convert) -c -d $(doc_dir)/sv_se/orm "$(source)"
$(doc_dir)/en_us/orm/pwr_simulclasses_h.html : $(inc_dir)/pwr_simulclasses.h $(doc_dir)/en_us/orm/pwr_simulclasses_h.html : $(inc_dir)/pwr_simulclasses.h
@ echo "Generating html files for struct en_us..." @ $(log_html)
@ $(co_convert) -c -d $(doc_dir)/en_us/orm "$(source)" @ $(co_convert) -c -d $(doc_dir)/en_us/orm "$(source)"
$(doc_dir)/sv_se/orm/pwr_simulclasses_hpp.html : $(inc_dir)/pwr_simulclasses.hpp $(doc_dir)/sv_se/orm/pwr_simulclasses_hpp.html : $(inc_dir)/pwr_simulclasses.hpp
@ echo "Generating html files for struct sv_se..." @ $(log_html)
@ $(co_convert) -c -d $(doc_dir)/sv_se/orm "$(source)" @ $(co_convert) -c -d $(doc_dir)/sv_se/orm "$(source)"
$(doc_dir)/en_us/orm/pwr_simulclasses_hpp.html : $(inc_dir)/pwr_simulclasses.hpp $(doc_dir)/en_us/orm/pwr_simulclasses_hpp.html : $(inc_dir)/pwr_simulclasses.hpp
@ echo "Generating html files for struct en_us..." @ $(log_html)
@ $(co_convert) -c -d $(doc_dir)/en_us/orm "$(source)" @ $(co_convert) -c -d $(doc_dir)/en_us/orm "$(source)"
...@@ -33,5 +33,5 @@ $(clean_html) : clean_%.html : %.html ...@@ -33,5 +33,5 @@ $(clean_html) : clean_%.html : %.html
@ $(rm) $(rmflags) $(doc_dir)/dox/$*.html @ $(rm) $(rmflags) $(doc_dir)/dox/$*.html
$(doc_dir)/dox/index.html : doxygen.dx $(doc_dir)/dox/index.html : doxygen.dx
@ echo "doxygen documentation $(source) $(target)" @ $(log_doxy)
@ doxygen 2> /dev/null @ doxygen 2> /dev/null
...@@ -298,27 +298,27 @@ $(exe_dir)/sv_se/man_dg.dat : $(pwre_sroot)/doc/man/sv_se/man_dg.dat ...@@ -298,27 +298,27 @@ $(exe_dir)/sv_se/man_dg.dat : $(pwre_sroot)/doc/man/sv_se/man_dg.dat
@ $(cp) $(cpflags) $(source) $(target) @ $(cp) $(cpflags) $(source) $(target)
$(doc_dir)/sv_se/man_dg_index.html : $(pwre_sroot)/doc/man/sv_se/man_dg.dat $(doc_dir)/sv_se/man_dg_index.html : $(pwre_sroot)/doc/man/sv_se/man_dg.dat
@ echo "Generating html for sv_se/man_dg" @ $(log_html)
@ $(co_convert) -t -l sv_se -d $(doc_dir)/sv_se $(source) @ $(co_convert) -t -l sv_se -d $(doc_dir)/sv_se $(source)
$(doc_dir)/en_us/man_dg_index.html : $(pwre_sroot)/doc/man/en_us/man_dg.dat $(doc_dir)/en_us/man_dg_index.html : $(pwre_sroot)/doc/man/en_us/man_dg.dat
@ echo "Generating html for en_us/man_dg" @ $(log_html)
@ $(co_convert) -t -d $(doc_dir)/en_us $(source) @ $(co_convert) -t -d $(doc_dir)/en_us $(source)
$(doc_dir)/en_us/man_dg.pdf : $(pwre_sroot)/doc/man/en_us/man_dg.dat $(doc_dir)/en_us/man_dg.pdf : $(pwre_sroot)/doc/man/en_us/man_dg.dat
@ echo "Generating pdf for en_us/man_dg" @ $(log_pdf)
@ $(co_convert) -f -d $(doc_dir)/en_us $(source) @ $(co_convert) -f -d $(doc_dir)/en_us $(source)
$(doc_dir)/sv_se/man_dg.pdf : $(pwre_sroot)/doc/man/sv_se/man_dg.dat $(doc_dir)/sv_se/man_dg.pdf : $(pwre_sroot)/doc/man/sv_se/man_dg.dat
@ echo "Generating pdf for sv_se/man_dg" @ $(log_pdf)
@ $(co_convert) -f -l sv_se -d $(doc_dir)/sv_se $(source) @ $(co_convert) -f -l sv_se -d $(doc_dir)/sv_se $(source)
$(doc_dir)/en_us/man_dg.ps : $(pwre_sroot)/doc/man/en_us/man_dg.dat $(doc_dir)/en_us/man_dg.ps : $(pwre_sroot)/doc/man/en_us/man_dg.dat
@ echo "Generating postscript for en_us/man_dg" @ $(log_ps)
@ $(co_convert) -n -d $(doc_dir)/en_us $(source) @ $(co_convert) -n -d $(doc_dir)/en_us $(source)
$(doc_dir)/sv_se/man_dg.ps : $(pwre_sroot)/doc/man/sv_se/man_dg.dat $(doc_dir)/sv_se/man_dg.ps : $(pwre_sroot)/doc/man/sv_se/man_dg.dat
@ echo "Generating postscript for sv_se/man_dg" @ $(log_ps)
@ $(co_convert) -n -d $(doc_dir)/sv_se $(source) @ $(co_convert) -n -d $(doc_dir)/sv_se $(source)
$(exe_dir)/en_us/man_opg.dat : $(pwre_sroot)/doc/man/en_us/man_opg.dat $(exe_dir)/en_us/man_opg.dat : $(pwre_sroot)/doc/man/en_us/man_opg.dat
...@@ -330,27 +330,27 @@ $(exe_dir)/sv_se/man_opg.dat : $(pwre_sroot)/doc/man/sv_se/man_opg.dat ...@@ -330,27 +330,27 @@ $(exe_dir)/sv_se/man_opg.dat : $(pwre_sroot)/doc/man/sv_se/man_opg.dat
@ $(cp) $(cpflags) $(source) $(target) @ $(cp) $(cpflags) $(source) $(target)
$(doc_dir)/en_us/man_opg_index.html : $(pwre_sroot)/doc/man/en_us/man_opg.dat $(doc_dir)/en_us/man_opg_index.html : $(pwre_sroot)/doc/man/en_us/man_opg.dat
@ echo "Generating html for en_us/man_opg" @ $(log_html)
@ $(co_convert) -t -d $(doc_dir)/en_us $(source) @ $(co_convert) -t -d $(doc_dir)/en_us $(source)
$(doc_dir)/sv_se/man_opg_index.html : $(pwre_sroot)/doc/man/sv_se/man_opg.dat $(doc_dir)/sv_se/man_opg_index.html : $(pwre_sroot)/doc/man/sv_se/man_opg.dat
@ echo "Generating html for sv_se/man_opg" @ $(log_html)
@ $(co_convert) -t -l sv_se -d $(doc_dir)/sv_se $(source) @ $(co_convert) -t -l sv_se -d $(doc_dir)/sv_se $(source)
$(doc_dir)/en_us/man_opg.pdf : $(pwre_sroot)/doc/man/en_us/man_opg.dat $(doc_dir)/en_us/man_opg.pdf : $(pwre_sroot)/doc/man/en_us/man_opg.dat
@ echo "Generating pdf for en_us/man_opg" @ $(log_html)
@ $(co_convert) -f -d $(doc_dir)/en_us $(source) @ $(co_convert) -f -d $(doc_dir)/en_us $(source)
$(doc_dir)/sv_se/man_opg.pdf : $(pwre_sroot)/doc/man/sv_se/man_opg.dat $(doc_dir)/sv_se/man_opg.pdf : $(pwre_sroot)/doc/man/sv_se/man_opg.dat
@ echo "Generating pdf for sv_se/man_opg" @ $(log_pdf)
@ $(co_convert) -f -l sv_se -d $(doc_dir)/sv_se $(source) @ $(co_convert) -f -l sv_se -d $(doc_dir)/sv_se $(source)
$(doc_dir)/en_us/man_opg.ps : $(pwre_sroot)/doc/man/en_us/man_opg.dat $(doc_dir)/en_us/man_opg.ps : $(pwre_sroot)/doc/man/en_us/man_opg.dat
@ echo "Generating postscript for en_us/man_opg" @ $(log_ps)
@ $(co_convert) -n -d $(doc_dir)/en_us $(source) @ $(co_convert) -n -d $(doc_dir)/en_us $(source)
$(doc_dir)/sv_se/man_opg.ps : $(pwre_sroot)/doc/man/sv_se/man_opg.dat $(doc_dir)/sv_se/man_opg.ps : $(pwre_sroot)/doc/man/sv_se/man_opg.dat
@ echo "Generating postscript for sv_se/man_opg" @ $(log_ps)
@ $(co_convert) -n -d $(doc_dir)/sv_se $(source) @ $(co_convert) -n -d $(doc_dir)/sv_se $(source)
$(exe_dir)/man_subgraph.dat : $(pwre_sroot)/doc/man/en_us/man_subgraph.dat $(exe_dir)/man_subgraph.dat : $(pwre_sroot)/doc/man/en_us/man_subgraph.dat
...@@ -366,27 +366,27 @@ $(exe_dir)/sv_se/man_geref.dat : $(pwre_sroot)/doc/man/sv_se/man_geref.dat ...@@ -366,27 +366,27 @@ $(exe_dir)/sv_se/man_geref.dat : $(pwre_sroot)/doc/man/sv_se/man_geref.dat
@ $(cp) $(cpflags) $(source) $(target) @ $(cp) $(cpflags) $(source) $(target)
$(doc_dir)/en_us/man_geref_index.html : $(pwre_sroot)/doc/man/en_us/man_geref.dat $(doc_dir)/en_us/man_geref_index.html : $(pwre_sroot)/doc/man/en_us/man_geref.dat
@ echo "Generating html for en_us/man_geref" @ $(log_html)
@ $(co_convert) -t -d $(doc_dir)/en_us $(source) @ $(co_convert) -t -d $(doc_dir)/en_us $(source)
$(doc_dir)/sv_se/man_geref_index.html : $(pwre_sroot)/doc/man/sv_se/man_geref.dat $(doc_dir)/sv_se/man_geref_index.html : $(pwre_sroot)/doc/man/sv_se/man_geref.dat
@ echo "Generating html for sv_se/man_geref" @ $(log_html)
@ $(co_convert) -t -l sv_se -d $(doc_dir)/sv_se $(source) @ $(co_convert) -t -l sv_se -d $(doc_dir)/sv_se $(source)
$(doc_dir)/en_us/man_geref.pdf : $(pwre_sroot)/doc/man/en_us/man_geref.dat $(doc_dir)/en_us/man_geref.pdf : $(pwre_sroot)/doc/man/en_us/man_geref.dat
@ echo "Generating pdf for en_us/man_geref" @ $(log_pdf)
@ $(co_convert) -f -d $(doc_dir)/en_us $(source) @ $(co_convert) -f -d $(doc_dir)/en_us $(source)
$(doc_dir)/sv_se/man_geref.pdf : $(pwre_sroot)/doc/man/sv_se/man_geref.dat $(doc_dir)/sv_se/man_geref.pdf : $(pwre_sroot)/doc/man/sv_se/man_geref.dat
@ echo "Generating pdf for sv_se/man_geref" @ $(log_pdf)
@ $(co_convert) -f -l sv_se -d $(doc_dir)/sv_se $(source) @ $(co_convert) -f -l sv_se -d $(doc_dir)/sv_se $(source)
$(doc_dir)/en_us/man_geref.ps : $(pwre_sroot)/doc/man/en_us/man_geref.dat $(doc_dir)/en_us/man_geref.ps : $(pwre_sroot)/doc/man/en_us/man_geref.dat
@ echo "Generating postscript for en_us/man_geref" @ $(log_ps)
@ $(co_convert) -n -d $(doc_dir)/en_us $(source) @ $(co_convert) -n -d $(doc_dir)/en_us $(source)
$(doc_dir)/sv_se/man_geref.ps : $(pwre_sroot)/doc/man/sv_se/man_geref.dat $(doc_dir)/sv_se/man_geref.ps : $(pwre_sroot)/doc/man/sv_se/man_geref.dat
@ echo "Generating postscript for sv_se/man_geref" @ $(log_ps)
@ $(co_convert) -n -d $(doc_dir)/sv_se $(source) @ $(co_convert) -n -d $(doc_dir)/sv_se $(source)
$(exe_dir)/en_us/man_pb.dat : $(pwre_sroot)/doc/man/en_us/man_pb.dat $(exe_dir)/en_us/man_pb.dat : $(pwre_sroot)/doc/man/en_us/man_pb.dat
...@@ -406,19 +406,19 @@ $(exe_dir)/sv_se/man_orm.dat : $(pwre_sroot)/doc/man/sv_se/man_orm.dat ...@@ -406,19 +406,19 @@ $(exe_dir)/sv_se/man_orm.dat : $(pwre_sroot)/doc/man/sv_se/man_orm.dat
@ $(cp) $(cpflags) $(source) $(target) @ $(cp) $(cpflags) $(source) $(target)
$(doc_dir)/en_us/man_orm_index.html : $(pwre_sroot)/doc/man/en_us/man_orm.dat $(doc_dir)/en_us/man_orm_index.html : $(pwre_sroot)/doc/man/en_us/man_orm.dat
@ echo "Generating html for en_us/man_orm" @ $(log_html)
@ $(co_convert) -t -d $(doc_dir)/en_us $(source) @ $(co_convert) -t -d $(doc_dir)/en_us $(source)
$(doc_dir)/sv_se/man_orm_index.html : $(pwre_sroot)/doc/man/sv_se/man_orm.dat $(doc_dir)/sv_se/man_orm_index.html : $(pwre_sroot)/doc/man/sv_se/man_orm.dat
@ echo "Generating html for sv_se/man_orm" @ $(log_html)
@ $(co_convert) -t -l sv_se -d $(doc_dir)/sv_se $(source) @ $(co_convert) -t -l sv_se -d $(doc_dir)/sv_se $(source)
$(doc_dir)/en_us/man_subgraph_index.html : $(pwre_sroot)/doc/man/en_us/man_subgraph.dat $(doc_dir)/en_us/man_subgraph_index.html : $(pwre_sroot)/doc/man/en_us/man_subgraph.dat
@ echo "Generating html for en_us/man_subgraph" @ $(log_html)
@ $(co_convert) -t -d $(doc_dir)/en_us $(source) @ $(co_convert) -t -d $(doc_dir)/en_us $(source)
$(doc_dir)/en_us/man_subgraph.pdf : $(pwre_sroot)/doc/man/en_us/man_subgraph.dat $(doc_dir)/en_us/man_subgraph.pdf : $(pwre_sroot)/doc/man/en_us/man_subgraph.dat
@ echo "Generating pdf for en_us/man_subgraph" @ $(log_pdf)
@ $(co_convert) -f -d $(doc_dir)/en_us $(source) @ $(co_convert) -f -d $(doc_dir)/en_us $(source)
$(exe_dir)/en_us/man_exlib.dat : $(pwre_sroot)/doc/man/en_us/man_exlib.dat $(exe_dir)/en_us/man_exlib.dat : $(pwre_sroot)/doc/man/en_us/man_exlib.dat
...@@ -426,15 +426,15 @@ $(exe_dir)/en_us/man_exlib.dat : $(pwre_sroot)/doc/man/en_us/man_exlib.dat ...@@ -426,15 +426,15 @@ $(exe_dir)/en_us/man_exlib.dat : $(pwre_sroot)/doc/man/en_us/man_exlib.dat
@ $(cp) $(cpflags) $(source) $(target) @ $(cp) $(cpflags) $(source) $(target)
$(doc_dir)/en_us/man_exlib.ps : $(pwre_sroot)/doc/man/en_us/man_exlib.dat $(doc_dir)/en_us/man_exlib.ps : $(pwre_sroot)/doc/man/en_us/man_exlib.dat
@ echo "Generating postscript for en_us/man_exlib" @ $(log_ps)
@ $(co_convert) -n -d $(doc_dir)/en_us $(source) @ $(co_convert) -n -d $(doc_dir)/en_us $(source)
$(doc_dir)/en_us/man_exlib_index.html : $(pwre_sroot)/doc/man/en_us/man_exlib.dat $(doc_dir)/en_us/man_exlib_index.html : $(pwre_sroot)/doc/man/en_us/man_exlib.dat
@ echo "Generating html for en_us/man_exlib" @ $(log_html)
@ $(co_convert) -t -d $(doc_dir)/en_us $(source) @ $(co_convert) -t -d $(doc_dir)/en_us $(source)
$(doc_dir)/en_us/man_exlib.pdf : $(pwre_sroot)/doc/man/en_us/man_exlib.dat $(doc_dir)/en_us/man_exlib.pdf : $(pwre_sroot)/doc/man/en_us/man_exlib.dat
@ echo "Generating pdf for en_us/man_exlib" @ $(log_pdf)
@ $(co_convert) -f -d $(doc_dir)/en_us $(source) @ $(co_convert) -f -d $(doc_dir)/en_us $(source)
$(exe_dir)/en_us/man_mva.dat : $(pwre_sroot)/doc/man/en_us/man_mva.dat $(exe_dir)/en_us/man_mva.dat : $(pwre_sroot)/doc/man/en_us/man_mva.dat
...@@ -464,7 +464,7 @@ $(doc_dir)/en_us/changelog.html : $(pwre_croot)/src/changelog.txt \ ...@@ -464,7 +464,7 @@ $(doc_dir)/en_us/changelog.html : $(pwre_croot)/src/changelog.txt \
$(pwre_croot)/ssabox/changelog.txt \ $(pwre_croot)/ssabox/changelog.txt \
$(pwre_croot)/telemecanique/changelog.txt \ $(pwre_croot)/telemecanique/changelog.txt \
$(pwre_croot)/klocknermoeller/changelog.txt $(pwre_croot)/klocknermoeller/changelog.txt
@ echo "Generating changelog html file" @ $(log_gen)
@ $(co_convert) -e @ $(co_convert) -e
@ mv $(pwre_croot)/src/doc/man/en_us/changelog.html $(target) @ mv $(pwre_croot)/src/doc/man/en_us/changelog.html $(target)
...@@ -494,12 +494,12 @@ $(pwre_sroot)/doc/man/%.pdf : $(pwre_sroot)/doc/man/%.fo $(pwre_sroot)/doc/man/s ...@@ -494,12 +494,12 @@ $(pwre_sroot)/doc/man/%.pdf : $(pwre_sroot)/doc/man/%.fo $(pwre_sroot)/doc/man/s
# $(xsltproc) $(xsltproc_args) $(chunk_args_sv_se) $(chunk_xsl) $(source) # $(xsltproc) $(xsltproc_args) $(chunk_args_sv_se) $(chunk_xsl) $(source)
$(doc_dir)/sv_se/%.css $(doc_dir)/en_us/%.css :: $(pwre_sroot)/doc/man/src/%.css $(doc_dir)/sv_se/%.css $(doc_dir)/en_us/%.css :: $(pwre_sroot)/doc/man/src/%.css
@ echo "copy $(source)" @ $(log_cp)
@ cp $(source) $(target) @ cp $(source) $(target)
# all-purpose rule for graphics/media # all-purpose rule for graphics/media
$(doc_dir)/% :: $(pwre_sroot)/doc/man/src/% $(doc_dir)/% :: $(pwre_sroot)/doc/man/src/%
@ echo "copy $(source)" @ $(log_cp)
@ cp $(source) $(target) @ cp $(source) $(target)
......
...@@ -98,6 +98,6 @@ $(clean_html) : clean_%.html : %.html ...@@ -98,6 +98,6 @@ $(clean_html) : clean_%.html : %.html
@ $(rm) $(rmflags) $(doc_dir)/orm/$*.html @ $(rm) $(rmflags) $(doc_dir)/orm/$*.html
$(doc_dir)/en_us/orm/orm.css : orm.css $(doc_dir)/en_us/orm/orm.css : orm.css
@ echo "copy $(source) $(target)" @ $(log_cp)
@ cp $(source) $(target) @ cp $(source) $(target)
@ cp $(source) $(doc_dir)/sv_se/orm @ cp $(source) $(doc_dir)/sv_se/orm
...@@ -34,7 +34,7 @@ $(clean_html) : clean_%.html : %.html ...@@ -34,7 +34,7 @@ $(clean_html) : clean_%.html : %.html
@ $(rm) $(rmflags) $(doc_dir)/prm/$*.html @ $(rm) $(rmflags) $(doc_dir)/prm/$*.html
$(doc_dir)/prm/index.html : doxygen.c $(doc_dir)/prm/index.html : doxygen.c
@ echo "Generating Programmer documentation: doxygen $(source) $(target)" @ $(log_doxy)
@ doxygen @ doxygen
# @ if [ "`eval which pdflatex`" != "" ]; then \ # @ if [ "`eval which pdflatex`" != "" ]; then \
# ./repl.sh latex/*.tex; \ # ./repl.sh latex/*.tex; \
......
...@@ -107,7 +107,7 @@ $(clean_js) : clean_%.js : %.js ...@@ -107,7 +107,7 @@ $(clean_js) : clean_%.js : %.js
@ $(rm) $(rmflags) $(doc_dir)/dox/$*.js @ $(rm) $(rmflags) $(doc_dir)/dox/$*.js
$(doc_dir)/pcss.css : pcss.css $(doc_dir)/pcss.css : pcss.css
@ echo "copy $(source) $(target)" @ $(log_cp)
@ cp $(source) $(target) @ cp $(source) $(target)
$(doc_dir)/%.html : $(pwre_sroot)/doc/web/src/%.html $(doc_dir)/%.html : $(pwre_sroot)/doc/web/src/%.html
......
...@@ -70,16 +70,16 @@ silent : ...@@ -70,16 +70,16 @@ silent :
@ : @ :
$(export_sh) : $(exe_dir)/%.sh : %.sh $(export_sh) : $(exe_dir)/%.sh : %.sh
@ echo "Exporting $< ..." @ $(log_exp)
@ $(cp) $(cpflags) $(source) $(target) @ $(cp) $(cpflags) $(source) $(target)
$(export_pwr_com) : $(exe_dir)/%.pwr_com : %.pwr_com $(export_pwr_com) : $(exe_dir)/%.pwr_com : %.pwr_com
@ echo "Exporting $< ..." @ $(log_exp)
@ $(cp) $(cpflags) $(source) $(target) @ $(cp) $(cpflags) $(source) $(target)
$(export_awk) : $(exe_dir)/%.awk : %.awk $(export_awk) : $(exe_dir)/%.awk : %.awk
@ echo "Exporting $< ..." @ $(log_exp)
@ $(cp) $(cpflags) $(source) $(target) @ $(cp) $(cpflags) $(source) $(target)
$(clean_sh) : clean_%.sh : %.sh $(clean_sh) : clean_%.sh : %.sh
......
...@@ -36,7 +36,7 @@ silent : ...@@ -36,7 +36,7 @@ silent :
$(exe_dir)/pwrrt.so : pwrrtmodule.c $(exe_dir)/pwrrt.so : pwrrtmodule.c
@ if [ "$(PWRE_CONF_PYDEV)" = "1" ]; then\ @ if [ "$(PWRE_CONF_PYDEV)" = "1" ]; then\
echo "Bulding Python c extension pwrrt";\ $(log_pyext);\
python setup_pwrrt.py -q build --build-base $(bld_dir);\ python setup_pwrrt.py -q build --build-base $(bld_dir);\
if [ "$(pwre_hw)" = "hw_x86_64" ]; then \ if [ "$(pwre_hw)" = "hw_x86_64" ]; then \
mv $(bld_dir)/lib.linux-x86_64-2.7/pwrrt.so $(pwr_exe); \ mv $(bld_dir)/lib.linux-x86_64-2.7/pwrrt.so $(pwr_exe); \
...@@ -45,7 +45,7 @@ $(exe_dir)/pwrrt.so : pwrrtmodule.c ...@@ -45,7 +45,7 @@ $(exe_dir)/pwrrt.so : pwrrtmodule.c
fi;\ fi;\
python setup_pwrrt.py -q install_egg_info --install-dir $(pwr_exe);\ python setup_pwrrt.py -q install_egg_info --install-dir $(pwr_exe);\
else\ else\
echo "Not building Python c extension pwrrt";\ $(log_no);\
fi fi
clean_pwrrt.so : pwrrtmodule.c clean_pwrrt.so : pwrrtmodule.c
......
...@@ -57,11 +57,11 @@ silent : ...@@ -57,11 +57,11 @@ silent :
@ : @ :
$(export_py) : $(exe_dir)/%.py : %.py $(export_py) : $(exe_dir)/%.py : %.py
@ echo "Exporting $< ..." @ $(log_exp)
@ $(cp) $(cpflags) $(source) $(target) @ $(cp) $(cpflags) $(source) $(target)
$(export_png) : $(exe_dir)/%.png : %.png $(export_png) : $(exe_dir)/%.png : %.png
@ echo "Exporting $< ..." @ $(log_exp)
@ $(cp) $(cpflags) $(source) $(target) @ $(cp) $(cpflags) $(source) $(target)
$(clean_py) : clean_%.py : %.py $(clean_py) : clean_%.py : %.py
......
...@@ -80,7 +80,7 @@ $(exe_dir)/%.wav : %.wav ...@@ -80,7 +80,7 @@ $(exe_dir)/%.wav : %.wav
@ $(cp) $(cpflags) $(source) $(target) @ $(cp) $(cpflags) $(source) $(target)
$(load_dir)/pwr_volumelist.dat : pwr_volumelist.dat $(load_dir)/pwr_volumelist.dat : pwr_volumelist.dat
@ echo "Copying pwr_volumelist.dat" @ $(log_cp)
@ $(cp) $(cpflags) $(source) $(target) @ $(cp) $(cpflags) $(source) $(target)
$(exe_dir)/sv_se/pwrb_xtthelp.dat : pwrb_xtthelp.dat_sv_se $(exe_dir)/sv_se/pwrb_xtthelp.dat : pwrb_xtthelp.dat_sv_se
...@@ -89,15 +89,15 @@ $(exe_dir)/sv_se/pwrb_xtthelp.dat : pwrb_xtthelp.dat_sv_se ...@@ -89,15 +89,15 @@ $(exe_dir)/sv_se/pwrb_xtthelp.dat : pwrb_xtthelp.dat_sv_se
@ #co_convert -t -d $(pwr_doc)/sv_se $(source) @ #co_convert -t -d $(pwr_doc)/sv_se $(source)
$(exe_dir)/pwr_logga.gif : pwr_logga.gif $(exe_dir)/pwr_logga.gif : pwr_logga.gif
@ echo "Copying pwr_logga.gif" @ $(log_cp)
@ $(cp) $(cpflags) $(source) $(target) @ $(cp) $(cpflags) $(source) $(target)
$(exe_dir)/%.gif : %.gif $(exe_dir)/%.gif : %.gif
@ echo "Copying $(source).gif exe" @ $(log_cp)
@ $(cp) $(cpflags) $(source) $(target) @ $(cp) $(cpflags) $(source) $(target)
$(doc_dir)/help/%.gif : %.gif $(doc_dir)/help/%.gif : %.gif
@ echo "Copying $(source).gif doc/help" @ $(log_cp)
@ $(cp) $(cpflags) $(source) $(target) @ $(cp) $(cpflags) $(source) $(target)
$(clean_obj) : clean_%.o : %.c $(clean_obj) : clean_%.o : %.c
......
...@@ -114,15 +114,15 @@ exe : ...@@ -114,15 +114,15 @@ exe :
dirs : $(bld_dir)$(dir_ext) dirs : $(bld_dir)$(dir_ext)
$(inc_dir)/dtt_appl_rttsys_m.rdecl : $(bld_dir)/dtt_appl_rttsys_m.rdecl $(inc_dir)/dtt_appl_rttsys_m.rdecl : $(bld_dir)/dtt_appl_rttsys_m.rdecl
@ echo "copy $(source) $(target)" @ $(log_cp)
@ cp $(source) $(target) @ cp $(source) $(target)
$(inc_dir)/dtt_appl_rttsys_m.rhlp : dtt_appl_rttsys_m.rhlp $(inc_dir)/dtt_appl_rttsys_m.rhlp : dtt_appl_rttsys_m.rhlp
@ echo "copy $(source) $(target)" @ $(log_cp)
@ cp $(source) $(target) @ cp $(source) $(target)
$(inc_dir)/dtt_appl_rttsys_m.rh : $(bld_dir)/dtt_appl_rttsys_m.rh $(inc_dir)/dtt_appl_rttsys_m.rh : $(bld_dir)/dtt_appl_rttsys_m.rh
@ echo "copy $(source) $(target)" @ $(log_cp)
@ cp $(source) $(target) @ cp $(source) $(target)
$(bld_dir)$(dir_ext) : $(bld_dir)$(dir_ext) :
...@@ -158,7 +158,7 @@ $(clean_hpp_includes) : clean_%.hpp : %.hpp ...@@ -158,7 +158,7 @@ $(clean_hpp_includes) : clean_%.hpp : %.hpp
@ $(rm) $(rmflags) $(inc_dir)/$*.hpp @ $(rm) $(rmflags) $(inc_dir)/$*.hpp
$(export_lib) : $(objects) $(export_lib) : $(objects)
@ echo "Building archive $(notdir $(export_lib))" @ $(log_lib)
@ $(rm) $(export_lib) @ $(rm) $(export_lib)
$(ar) -cUr $(export_lib) $(objects) $(ar) -cUr $(export_lib) $(objects)
...@@ -176,11 +176,11 @@ endif ...@@ -176,11 +176,11 @@ endif
# $(cc) $(cflags) $(depmms) -I$(bld_dir) $(cinc) $(csetos) $(cobj) $(clis) $(source) $(clib) # $(cc) $(cflags) $(depmms) -I$(bld_dir) $(cinc) $(csetos) $(cobj) $(clis) $(source) $(clib)
$(export_lib)(%.o) : %.dtt $(export_lib)(%.o) : %.dtt
@ echo "Generate $(sname)" @ $(log_gen)
@ $(wb_rtt) rttsys generate/id=$(sname) $(pwre_conf_dtt_platform) @ $(wb_rtt) rttsys generate/id=$(sname) $(pwre_conf_dtt_platform)
$(bld_dir)/%.c : %.dtt_m $(bld_dir)/%.c : %.dtt_m
@ echo "Generate menu" @ $(log_gen)
@ $(wb_rtt) rttsys generate/menu $(pwre_conf_dtt_platform) @ $(wb_rtt) rttsys generate/menu $(pwre_conf_dtt_platform)
-include $(source_dependencies) -include $(source_dependencies)
......
...@@ -6965,7 +6965,7 @@ int rtt_message(char severity, char* message) ...@@ -6965,7 +6965,7 @@ int rtt_message(char severity, char* message)
if (rtt_file_on && rtt_print_message) if (rtt_file_on && rtt_print_message)
fprintf(rtt_outfile, "%%RTT-%c-MSG, %s\n", severity, message); fprintf(rtt_outfile, "%%RTT-%c-MSG, %s\n", severity, message);
if ((rtt_quiet & RTT_QUIET_MESSAGE) || (rtt_quiet && rtt_verify)) if ((rtt_quiet & RTT_QUIET_MESSAGE) || (rtt_quiet && rtt_verify))
printf("\n%%RTT-%c-MSG, %s", severity, message); printf("%%RTT-%c-MSG, %s\n", severity, message);
else if (severity == 'E') else if (severity == 'E')
rtt_printf("%c", '\7'); rtt_printf("%c", '\7');
r_print("%%RTT-%c-MSG, %s", severity, message); r_print("%%RTT-%c-MSG, %s", severity, message);
......
...@@ -177,7 +177,7 @@ echo: ...@@ -177,7 +177,7 @@ echo:
dirs : $(bld_dir)$(dir_ext) dirs : $(bld_dir)$(dir_ext)
$(bld_dir)$(dir_ext) : $(bld_dir)$(dir_ext) :
@ echo "lib_gene $(basename $@)" @ $(log_mkdir) $<
@ $(mkdir) $(mkdirflags) $(basename $@)/ @ $(mkdir) $(mkdirflags) $(basename $@)/
clean : clean_bld clean_lib clean : clean_bld clean_lib
...@@ -218,7 +218,7 @@ $(clean_pwsg) : clean_%.pwsg : %.pwsg ...@@ -218,7 +218,7 @@ $(clean_pwsg) : clean_%.pwsg : %.pwsg
@ $(rm) $(rmflags) $(exe_dir)/$*.pwsg @ $(rm) $(rmflags) $(exe_dir)/$*.pwsg
$(export_lib) : $(objects) $(export_lib) : $(objects)
@ echo "Building archive $(notdir $(export_lib))" @ $(log_lib)
@ $(ar) -cUr $(export_lib) $(objects) @ $(ar) -cUr $(export_lib) $(objects)
# @ if [ -e $(export_lib) ]; then \ # @ if [ -e $(export_lib) ]; then \
......
...@@ -53,8 +53,8 @@ exe : ...@@ -53,8 +53,8 @@ exe :
dirs : $(bld_dir)$(dir_ext) | silent dirs : $(bld_dir)$(dir_ext) | silent
$(bld_dir)$(dir_ext) : $(bld_dir)$(dir_ext) :
@ echo "msg_gene $(basename $@)" @ $(log_mkdir) $<
$(mkdir) $(mkdirflags) $(basename $@) @ $(mkdir) $(mkdirflags) $(basename $@)
clean : clean :
...@@ -64,7 +64,7 @@ silent : ...@@ -64,7 +64,7 @@ silent :
@ : @ :
$(export_cmsg) : $(cmsgs) $(export_cmsg) : $(cmsgs)
@ echo Creating: obj_dir/$(notdir $@) @ $(log_gen)
@ cat $(cmsgs) > $(export_cmsg) @ cat $(cmsgs) > $(export_cmsg)
$(export_obj) : $(export_cmsg) $(export_obj) : $(export_cmsg)
......
...@@ -29,10 +29,14 @@ elib_dir := $(release_root)/exp/lib ...@@ -29,10 +29,14 @@ elib_dir := $(release_root)/exp/lib
einc_dir := $(release_root)/exp/inc einc_dir := $(release_root)/exp/inc
eobj_dir := $(release_root)/exp/obj eobj_dir := $(release_root)/exp/obj
eexe_dir := $(release_root)/exp/exe eexe_dir := $(release_root)/exp/exe
elis_dir := $(release_root)/exp/lis
bld_dir := $(release_root)/bld/$(type_name)/$(comp_name) bld_dir := $(release_root)/bld/$(type_name)/$(comp_name)
tmp_dir := $(release_root)/tmp tmp_dir := $(release_root)/tmp
logfile := $(elis_dir)/build.tlog
time = `date +'%Y-%m-%d %T.00'`
c_ext := .c c_ext := .c
d_ext := .d d_ext := .d
d_ld_ext:= .d_ld d_ld_ext:= .d_ld
...@@ -163,25 +167,33 @@ clis = /lis=$(list) ...@@ -163,25 +167,33 @@ clis = /lis=$(list)
dolist = /lis=$(list) dolist = /lis=$(list)
domap = -Xlinker -Map -Xlinker $(map) domap = -Xlinker -Map -Xlinker $(map)
log_h_h = echo "Exporting $<" log_mkdir = echo "I $(time) build-$(pwre_bmodule), Dir created $@" | tee -a $(logfile)
log_x_h = echo "Exporting $< to $(notdir $@)" log_cp = echo "I $(time) build-$(pwre_bmodule), Copy $<" | tee -a $(logfile)
#log_c_d = echo "Updating dependencies $<" log_exp = echo "I $(time) build-$(pwre_bmodule), Exporting $<" | tee -a $(logfile)
log_c_obj = echo "Compiling $<" log_gen = echo "I $(time) build-$(pwre_bmodule), Generated $@" | tee -a $(logfile)
log_c_lib = echo "Compiling $(notdir $(basename $@))($<)" log_lib = echo "I $(time) build-$(pwre_bmodule), Building archive $@" | tee -a $(logfile)
log_x_lib = echo "Compiling $(notdir $(basename $@))($<)" log_pyext = echo "I $(time) build-$(pwre_bmodule), Building Python c extension $@" | tee -a $(logfile)
log_obj_lib = echo "Archiving lasse $(notdir $(basename $@))($(notdir $<))" log_doxy = echo "I $(time) build-$(pwre_bmodule), Doxygen documentation $@" | tee -a $(logfile)
log_hlp_hlb = echo "Exporting $(notdir $(basename $@))($<)" log_no = echo "I $(time) build-$(pwre_bmodule), Not building $@" | tee -a $(logfile)
log_sc_lib = echo "Compiling $(notdir $(basename $@))($<)" log_h_h = echo "I $(time) build-$(pwre_bmodule), Exporting $<" | tee -a $(logfile)
log_sc_obj = echo "Compiling $<" log_x_h = echo "I $(time) build-$(pwre_bmodule), Exporting $< to $(notdir $@)" | tee -a $(logfile)
log_uil_uid = echo "Compiling $<" #log_c_d = echo "I $(time) build-$(pwre_bmodule), Updating dependencies $<" | tee -a $(logfile)
log_g_m1 = echo "Exporting $<" log_c_obj = echo "I ${time} build-$(pwre_bmodule), Compiling $<" | tee -a $(logfile)
log_cld_lib = echo "Compiling $(notdir $(basename $@))($<)" log_c_lib = echo "I $(time) build-$(pwre_bmodule), Compiling $(notdir $(basename $@))($<)" | tee -a $(logfile)
log_link_exe = echo "Linking $@" log_x_lib = echo "I $(time) build-$(pwre_bmodule), Compiling $(notdir $(basename $@))($<)" | tee -a $(logfile)
log_wb_load_wb_vers = echo "Exporting $<" log_obj_lib = echo "I $(time) build-$(pwre_bmodule), Archiving lasse $(notdir $(basename $@))($(notdir $<))" | tee -a $(logfile)
log_xbm_xbm = echo "Exporting $<" log_hlp_hlb = echo "I $(time) build-$(pwre_bmodule), Exporting $(notdir $(basename $@))($<)" | tee -a $(logfile)
log_frm_frm = echo "Exporting $<" log_sc_lib = echo "I $(time) build-$(pwre_bmodule), Compiling $(notdir $(basename $@))($<)" | tee -a $(logfile)
log_graph_graph = echo "Exporting $<" log_sc_obj = echo "I $(time) build-$(pwre_bmodule), Compiling $<" | tee -a $(logfile)
log_msg_h = echo "Compiling $<" log_uil_uid = echo "I $(time) build-$(pwre_bmodule), Compiling $<" | tee -a $(logfile)
log_java_class = echo "Compiling $<" log_g_m1 = echo "I $(time) build-$(pwre_bmodule), Exporting $<" | tee -a $(logfile)
log_cld_lib = echo "I $(time) build-$(pwre_bmodule), Compiling $(notdir $(basename $@))($<)" | tee -a $(logfile)
log_link_exe = echo "I $(time) build-$(pwre_bmodule), Linking $@" | tee -a $(logfile)
log_wb_load_wb_vers = echo "I $(time) build-$(pwre_bmodule), Exporting $<" | tee -a $(logfile)
log_xbm_xbm = echo "I $(time) build-$(pwre_bmodule), Exporting $<" | tee -a $(logfile)
log_frm_frm = echo "I $(time) build-$(pwre_bmodule), Exporting $<" | tee -a $(logfile)
log_graph_graph = echo "I $(time) build-$(pwre_bmodule), Exporting $<" | tee -a $(logfile)
log_msg_h = echo "I $(time) build-$(pwre_bmodule), Compiling $<" | tee -a $(logfile)
log_java_class = echo "I $(time) build-$(pwre_bmodule), Compiling $<" | tee -a $(logfile)
endif endif
...@@ -77,69 +77,78 @@ clean_html_en_us := $(patsubst %.wb_load,clean_%_en_us.html,$(wbl_sources)) ...@@ -77,69 +77,78 @@ clean_html_en_us := $(patsubst %.wb_load,clean_%_en_us.html,$(wbl_sources))
clean_ps_sv_se := $(patsubst %.wb_load,clean_%_sv_se.ps,$(wbl_sources)) clean_ps_sv_se := $(patsubst %.wb_load,clean_%_sv_se.ps,$(wbl_sources))
clean_ps_en_us := $(patsubst %.wb_load,clean_%_en_us.ps,$(wbl_sources)) clean_ps_en_us := $(patsubst %.wb_load,clean_%_en_us.ps,$(wbl_sources))
log_load = echo "I $(time) build-$(pwre_bmodule), Generate loadfile $(notdir $@)" | tee -a $(logfile)
log_struct = echo "I $(time) build-$(pwre_bmodule), Generate struct files $(notdir $@)" | tee -a $(logfile)
log_hpp = echo "I $(time) build-$(pwre_bmodule), Generate hpp files $(notdir $@)" | tee -a $(logfile)
log_html = echo "I $(time) build-$(pwre_bmodule), Generate html files $(notdir $@)" | tee -a $(logfile)
log_ps = echo "I $(time) build-$(pwre_bmodule), Generate postscript files $(notdir $@)" | tee -a $(logfile)
log_pdf = echo "I $(time) build-$(pwre_bmodule), Generate pdf files $(notdir $@)" | tee -a $(logfile)
log_xtthelp = echo "I $(time) build-$(pwre_bmodule), Generate xtthelp files $(notdir $@)" | tee -a $(logfile)
.SUFFIXES: .SUFFIXES:
$(bld_dir)$(dir_ext) : $(bld_dir)$(dir_ext) :
@ $(mkdir) $(mkdirflags) $(basename $@) @ $(mkdir) $(mkdirflags) $(basename $@)
$(load_dir)/%.dbs : %.wb_load $(load_dir)/%.dbs : %.wb_load
@ echo "Generating loadfile for $(source)" @ $(log_load)
@ export pwr_load=$(pwr_eload);\ @ export pwr_load=$(pwr_eload);\
wb_cmd -q -i create snapshot $(wblflags) /file=\"$(source)\"/out=\"$(target)\"/depend=\"$(dbs_dependencies)\" wb_cmd -q -i create snapshot $(wblflags) /file=\"$(source)\"/out=\"$(target)\"/depend=\"$(dbs_dependencies)\"
@ chmod a+w $(target) @ chmod a+w $(target)
$(inc_dir)/pwr_%classes.h : %.wb_load $(inc_dir)/pwr_%classes.h : %.wb_load
@ echo "Generating struct files for $(source) classes..." @ $(log_struct)
@ $(co_convert) -so -d $(inc_dir) "$(source)" @ $(co_convert) -so -d $(inc_dir) "$(source)"
$(inc_dir)/pwr_%classes.hpp : %.wb_load $(inc_dir)/pwr_%classes.hpp : %.wb_load
@ echo "Generating hpp files for $(source) classes..." @ $(log_hpp)
@ $(co_convert) -po -d $(inc_dir) "$(source)" @ $(co_convert) -po -d $(inc_dir) "$(source)"
$(doc_dir)/en_us/orm/%.pdf : %.pdf $(doc_dir)/en_us/orm/%.pdf : %.pdf
@ echo "Copy en_us $(source)" @ $(log_cp)
@ $(cp) $(cpflags) $(source) $(target) @ $(cp) $(cpflags) $(source) $(target)
$(doc_dir)/sv_se/orm/%.pdf : %.pdf $(doc_dir)/sv_se/orm/%.pdf : %.pdf
@ echo "Copy sv_se $(source)" @ $(log_cp)
@ $(cp) $(cpflags) $(source) $(target) @ $(cp) $(cpflags) $(source) $(target)
$(doc_dir)/en_us/orm/%_allclasses.html : %.wb_load $(doc_dir)/en_us/orm/%_allclasses.html : %.wb_load
@ echo "Generating html files for $(source) classes en_us..." @ $(log_html)
@ $(co_convert) -w -d $(doc_dir)/en_us/orm -g $(pwre_sroot)/wbl/mcomp/src/cnv_setup.dat "$(source)" @ $(co_convert) -w -d $(doc_dir)/en_us/orm -g $(pwre_sroot)/wbl/mcomp/src/cnv_setup.dat "$(source)"
@ $(co_convert) -c -d $(doc_dir)/en_us/orm $(inc_dir)/pwr_$(pwre_module)classes.h @ $(co_convert) -c -d $(doc_dir)/en_us/orm $(inc_dir)/pwr_$(pwre_module)classes.h
@ $(co_convert) -c -d $(doc_dir)/en_us/orm $(inc_dir)/pwr_$(pwre_module)classes.hpp @ $(co_convert) -c -d $(doc_dir)/en_us/orm $(inc_dir)/pwr_$(pwre_module)classes.hpp
@ $(co_convert) -k -d $(doc_dir)/en_us/orm -l en_us @ $(co_convert) -k -d $(doc_dir)/en_us/orm -l en_us
$(doc_dir)/sv_se/orm/%_allclasses.html : %.wb_load $(doc_dir)/sv_se/orm/%_allclasses.html : %.wb_load
@ echo "Generating html files for $(source) classes sv_se..." @ $(log_html)
@ $(co_convert) -w -l sv_se -d $(doc_dir)/sv_se/orm -g $(pwre_sroot)/wbl/mcomp/src/cnv_setup.dat "$(source)" @ $(co_convert) -w -l sv_se -d $(doc_dir)/sv_se/orm -g $(pwre_sroot)/wbl/mcomp/src/cnv_setup.dat "$(source)"
@ $(co_convert) -c -d $(doc_dir)/sv_se/orm $(inc_dir)/pwr_$(pwre_module)classes.h @ $(co_convert) -c -d $(doc_dir)/sv_se/orm $(inc_dir)/pwr_$(pwre_module)classes.h
@ $(co_convert) -c -d $(doc_dir)/sv_se/orm $(inc_dir)/pwr_$(pwre_module)classes.hpp @ $(co_convert) -c -d $(doc_dir)/sv_se/orm $(inc_dir)/pwr_$(pwre_module)classes.hpp
@ $(co_convert) -k -d $(doc_dir)/sv_se/orm -l sv_se @ $(co_convert) -k -d $(doc_dir)/sv_se/orm -l sv_se
$(doc_dir)/en_us/%.ps : %.wb_load $(doc_dir)/en_us/%.ps : %.wb_load
@ echo "Generating postscript file for $(source) classes en_us..." @ $(log_ps)
@ $(co_convert) -q -l en_us -d $(doc_dir)/en_us "$(source)" @ $(co_convert) -q -l en_us -d $(doc_dir)/en_us "$(source)"
$(doc_dir)/sv_se/%.ps : %.wb_load $(doc_dir)/sv_se/%.ps : %.wb_load
@ echo "Generating postscript file for $(source) classes sv_se..." @ $(log_ps)
@ $(co_convert) -q -l sv_se -d $(doc_dir)/sv_se "$(source)" @ $(co_convert) -q -l sv_se -d $(doc_dir)/sv_se "$(source)"
$(doc_dir)/en_us/%.pdf : %.wb_load $(doc_dir)/en_us/%.pdf : %.wb_load
@ echo "Generating pdf file for $(source) classes en_us..." @ $(log_pdf)
@ $(co_convert) -Q -l en_us -d $(doc_dir)/en_us "$(source)" @ $(co_convert) -Q -l en_us -d $(doc_dir)/en_us "$(source)"
$(doc_dir)/sv_se/%.pdf : %.wb_load $(doc_dir)/sv_se/%.pdf : %.wb_load
@ echo "Generating pdf file for $(source) classes sv_se..." @ $(log_pdf)
@ $(co_convert) -Q -l sv_se -d $(doc_dir)/sv_se "$(source)" @ $(co_convert) -Q -l sv_se -d $(doc_dir)/sv_se "$(source)"
$(exe_dir)/en_us/%_xtthelp.dat : %.wb_load $(exe_dir)/en_us/%_xtthelp.dat : %.wb_load
@ echo "Generating xtt help files for $(source) classes en_us" @ $(log_xtthelp)
@ $(co_convert) -x -d $(exe_dir)/en_us "$(source)" @ $(co_convert) -x -d $(exe_dir)/en_us "$(source)"
$(exe_dir)/sv_se/%_xtthelp.dat : %.wb_load $(exe_dir)/sv_se/%_xtthelp.dat : %.wb_load
@ echo "Generating xtt help files for $(source) classes sv_se" @ $(log_xtthelp)
@ $(co_convert) -x -l sv_se -d $(exe_dir)/sv_se "$(source)" @ $(co_convert) -x -l sv_se -d $(exe_dir)/sv_se "$(source)"
$(exe_dir)/%.pwg : %.pwg $(exe_dir)/%.pwg : %.pwg
......
...@@ -3,6 +3,8 @@ ...@@ -3,6 +3,8 @@
# pwre.pl # pwre.pl
# #
use POSIX;
%verbs = ( %verbs = (
"add", "add:usage_add", "add", "add:usage_add",
"configure", "configure:usage_configure", "configure", "configure:usage_configure",
...@@ -153,7 +155,7 @@ sub configure() ...@@ -153,7 +155,7 @@ sub configure()
sub set_flavour # args: flavour sub set_flavour # args: flavour
{ {
printf("Set flavour %s\n", $_[0]); # printf("Set flavour %s\n", $_[0]);
if ($_[0] eq "qt") { if ($_[0] eq "qt") {
$ENV{pwre_conf_qt} = "1"; $ENV{pwre_conf_qt} = "1";
} }
...@@ -975,7 +977,7 @@ sub build_module() ...@@ -975,7 +977,7 @@ sub build_module()
if ($ver == 1) { if ($ver == 1) {
printf("\n"); printf("\n");
} }
printf("-- Build module %s\n", $module); _log('I', '', '', 'Building module');
#show(); #show();
if ($module eq "rt") { if ($module eq "rt") {
...@@ -1217,7 +1219,8 @@ sub create_module() ...@@ -1217,7 +1219,8 @@ sub create_module()
$root .= "/" . $ENV{"pwre_hw"}; $root .= "/" . $ENV{"pwre_hw"};
create_dir($root); create_dir($root);
printf("-- Creating build tree %s/%s\n", $root, $module); $str = 'Creating build tree ' . $root . '/' . $module;
_log('I', '', '', $str);
$newdir = $root . "/bld"; $newdir = $root . "/bld";
create_dir($newdir); create_dir($newdir);
...@@ -1438,9 +1441,15 @@ sub _build() # args: branch, subbranch, flavour, phase ...@@ -1438,9 +1441,15 @@ sub _build() # args: branch, subbranch, flavour, phase
if ($parallel eq "1" && (($branch eq "lib" && $subbranch ne "dtt") || $branch eq "wbl")) { if ($parallel eq "1" && (($branch eq "lib" && $subbranch ne "dtt") || $branch eq "wbl")) {
# All libraries and wbl files can be compiled in parallel # All libraries and wbl files can be compiled in parallel
system("make -f $makefile -j$cpu_count -l$cpu_count @_") && exit 1; if (system("make -f $makefile -j$cpu_count -l$cpu_count @_")) {
_log("F", $branch, $subbranch, "Fatal error, build terminated");
exit 1;
}
} else { } else {
system("make -f $makefile @_") && exit 1; if (system("make -f $makefile @_")) {
_log("F", $branch, $subbranch, "Fatal error, build terminated");
exit 1;
}
} }
} }
} }
...@@ -1802,3 +1811,24 @@ sub usage_tags() ...@@ -1802,3 +1811,24 @@ sub usage_tags()
{ {
printf("++ tags : Creates a CRiSP tag-file named ~/pwre/tags\n"); printf("++ tags : Creates a CRiSP tag-file named ~/pwre/tags\n");
} }
sub _log() # args: severity, branch, subbranch, text
{
my($severity) = $_[0];
my($branch) = $_[1];
my($subbranch) = $_[2];
my($text) = $_[3];
my($module) = $ENV{"pwre_module"};
my($lisdir) = $ENV{"pwr_elis"};
my $tim = strftime("%Y-%m-%d %H:%M:%S", localtime(time));
my $str = $severity . ' ' . $tim . '.00 build-' . $module . ', ' . $text . "\n";
my($fname) = ">>" . $lisdir . "/build.tlog";
if (open(my $fd, $fname)) {
print $fd $str;
close($fd);
}
printf("%s", $str);
}
...@@ -28,19 +28,19 @@ export_code_sv_se := $(patsubst %.h,$(doc_dir)/sv_se/orm/%_h.html,$(export_code_ ...@@ -28,19 +28,19 @@ export_code_sv_se := $(patsubst %.h,$(doc_dir)/sv_se/orm/%_h.html,$(export_code_
.SUFFIXES: .SUFFIXES:
$(doc_dir)/en_us/orm/%_c.html : $(pwre_sroot)/lib/rt/src/%.c $(doc_dir)/en_us/orm/%_c.html : $(pwre_sroot)/lib/rt/src/%.c
@ echo "Generating html files sv_se $(notdir $(source))" @ $(log_html)
@ $(co_convert) -c -d $(doc_dir)/en_us/orm "$(source)" @ $(co_convert) -c -d $(doc_dir)/en_us/orm "$(source)"
$(doc_dir)/en_us/orm/%_h.html : $(pwre_sroot)/lib/rt/src/%.h $(doc_dir)/en_us/orm/%_h.html : $(pwre_sroot)/lib/rt/src/%.h
@ echo "Generating html files sv_se $(notdir $(source))" @ $(log_html)
@ $(co_convert) -c -d $(doc_dir)/en_us/orm "$(source)" @ $(co_convert) -c -d $(doc_dir)/en_us/orm "$(source)"
$(doc_dir)/sv_se/orm/%_c.html : $(pwre_sroot)/lib/rt/src/%.c $(doc_dir)/sv_se/orm/%_c.html : $(pwre_sroot)/lib/rt/src/%.c
@ echo "Generating html files sv_se $(notdir $(source))" @ $(log_html)
@ $(co_convert) -c -d $(doc_dir)/sv_se/orm "$(source)" @ $(co_convert) -c -d $(doc_dir)/sv_se/orm "$(source)"
$(doc_dir)/sv_se/orm/%_h.html : $(pwre_sroot)/lib/rt/src/%.h $(doc_dir)/sv_se/orm/%_h.html : $(pwre_sroot)/lib/rt/src/%.h
@ echo "Generating html files sv_se $(notdir $(source))" @ $(log_html)
@ $(co_convert) -c -d $(doc_dir)/sv_se/orm "$(source)" @ $(co_convert) -c -d $(doc_dir)/sv_se/orm "$(source)"
.PHONY : all init copy lib exe dirs clean realclean\ .PHONY : all init copy lib exe dirs clean realclean\
...@@ -83,64 +83,64 @@ silent : ...@@ -83,64 +83,64 @@ silent :
@ : @ :
$(load_dir)/pwrb.dbs : $(load_dir)/pwrb.dbs :
@ echo "Generating loadfile for pwrb" @ $(log_load)
@ wb_cmd -q -i create snapshot $(wblflags) /file=\"$(pwre_sroot)/wbl/pwrb/src/\"/out=\"$(target)\"/depend=\"$(bld_dir)/pwrb.d_wbl\" @ wb_cmd -q -i create snapshot $(wblflags) /file=\"$(pwre_sroot)/wbl/pwrb/src/\"/out=\"$(target)\"/depend=\"$(bld_dir)/pwrb.d_wbl\"
@ chmod a+w $(target) @ chmod a+w $(target)
$(inc_dir)/pwr_baseclasses.h : $(inc_dir)/pwr_baseclasses.h :
@ echo "Generating struct files for pwrb classes..." @ $(log_struct)
@ $(co_convert) -so -d $(inc_dir) -y $(bld_dir)/pwrb.d_h_wbl "$(pwre_sroot)/wbl/pwrb/src/pwrb_*.wb_load" @ $(co_convert) -so -d $(inc_dir) -y $(bld_dir)/pwrb.d_h_wbl "$(pwre_sroot)/wbl/pwrb/src/pwrb_*.wb_load"
$(inc_dir)/pwr_baseclasses.hpp : $(inc_dir)/pwr_baseclasses.hpp :
@ echo "Generating hpp files for pwrb classes..." @ $(log_hpp)
@ $(co_convert) -po -d $(inc_dir) -y $(bld_dir)/pwrb.d_hpp_wbl "$(pwre_sroot)/wbl/pwrb/src/pwrb_*.wb_load" @ $(co_convert) -po -d $(inc_dir) -y $(bld_dir)/pwrb.d_hpp_wbl "$(pwre_sroot)/wbl/pwrb/src/pwrb_*.wb_load"
$(doc_dir)/en_us/orm/pwrb_allclasses.html : $(doc_dir)/en_us/orm/pwrb_allclasses.html :
@ echo "Generating html files for pwrb classes en_us..." @ $(log_html)
@ $(co_convert) -w -d $(doc_dir)/en_us/orm -y $(bld_dir)/pwrb.d_html_wbl -g $(pwre_sroot)/wbl/pwrb/src/cnv_setup.dat "$(pwre_sroot)/wbl/pwrb/src/pwrb_*.wb_load" @ $(co_convert) -w -d $(doc_dir)/en_us/orm -y $(bld_dir)/pwrb.d_html_wbl -g $(pwre_sroot)/wbl/pwrb/src/cnv_setup.dat "$(pwre_sroot)/wbl/pwrb/src/pwrb_*.wb_load"
$(doc_dir)/en_us/orm/pwr_baseclasses_h.html : $(doc_dir)/en_us/orm/pwr_baseclasses_h.html :
@ echo "Generating html files for pwrb structs en_us..." @ $(log_html)
@ $(co_convert) -c -d $(doc_dir)/en_us/orm $(inc_dir)/pwr_baseclasses.h @ $(co_convert) -c -d $(doc_dir)/en_us/orm $(inc_dir)/pwr_baseclasses.h
$(doc_dir)/en_us/orm/pwr_baseclasses_hpp.html : $(doc_dir)/en_us/orm/pwr_baseclasses_hpp.html :
@ echo "Generating html files for pwrb structs en_us..." @ $(log_html)
@ $(co_convert) -c -d $(doc_dir)/en_us/orm $(inc_dir)/pwr_baseclasses.hpp @ $(co_convert) -c -d $(doc_dir)/en_us/orm $(inc_dir)/pwr_baseclasses.hpp
$(doc_dir)/sv_se/orm/pwrb_allclasses.html : $(doc_dir)/sv_se/orm/pwrb_allclasses.html :
@ echo "Generating html files for pwrb classes sv_se..." @ $(log_html)
@ $(co_convert) -w -l sv_se -d $(doc_dir)/sv_se/orm -g $(pwre_sroot)/wbl/pwrb/src/cnv_setup.dat "$(pwre_sroot)/wbl/pwrb/src/pwrb_*.wb_load" @ $(co_convert) -w -l sv_se -d $(doc_dir)/sv_se/orm -g $(pwre_sroot)/wbl/pwrb/src/cnv_setup.dat "$(pwre_sroot)/wbl/pwrb/src/pwrb_*.wb_load"
$(doc_dir)/sv_se/orm/pwr_baseclasses_h.html : $(doc_dir)/sv_se/orm/pwr_baseclasses_h.html :
@ echo "Generating html files for pwrb structs sv_se..." @ $(log_html)
@ $(co_convert) -c -d $(doc_dir)/sv_se/orm $(inc_dir)/pwr_baseclasses.h @ $(co_convert) -c -d $(doc_dir)/sv_se/orm $(inc_dir)/pwr_baseclasses.h
$(doc_dir)/sv_se/orm/pwr_baseclasses_hpp.html : $(doc_dir)/sv_se/orm/pwr_baseclasses_hpp.html :
@ echo "Generating html files for pwrb structs sv_se..." @ $(log_html)
@ $(co_convert) -c -d $(doc_dir)/sv_se/orm $(inc_dir)/pwr_baseclasses.hpp @ $(co_convert) -c -d $(doc_dir)/sv_se/orm $(inc_dir)/pwr_baseclasses.hpp
$(doc_dir)/en_us/pwrb.ps : $(doc_dir)/en_us/pwrb.ps :
@ echo "Generating postscript file for pwrb classes..." @ $(log_ps)
@ $(co_convert) -q -d $(doc_dir)/en_us "$(pwre_sroot)/wbl/pwrb/src/pwrb_*.wb_load" @ $(co_convert) -q -d $(doc_dir)/en_us "$(pwre_sroot)/wbl/pwrb/src/pwrb_*.wb_load"
$(doc_dir)/sv_se/pwrb.ps : $(doc_dir)/sv_se/pwrb.ps :
@ echo "Generating postscript file for pwrb classes..." @ $(log_ps)
@ $(co_convert) -q -l sv_se -d $(doc_dir)/sv_se "$(pwre_sroot)/wbl/pwrb/src/pwrb_*.wb_load" @ $(co_convert) -q -l sv_se -d $(doc_dir)/sv_se "$(pwre_sroot)/wbl/pwrb/src/pwrb_*.wb_load"
$(doc_dir)/en_us/pwrb.pdf : $(doc_dir)/en_us/pwrb.pdf :
@ echo "Generating pdf file for pwrb classes..." @ $(log_pdf)
@ $(co_convert) -Q -d $(doc_dir)/en_us "$(pwre_sroot)/wbl/pwrb/src/pwrb_*.wb_load" @ $(co_convert) -Q -d $(doc_dir)/en_us "$(pwre_sroot)/wbl/pwrb/src/pwrb_*.wb_load"
$(doc_dir)/sv_se/pwrb.pdf : $(doc_dir)/sv_se/pwrb.pdf :
@ echo "Generating pdf file for pwrb classes..." @ $(log_pdf)
@ $(co_convert) -Q -l sv_se -d $(doc_dir)/sv_se "$(pwre_sroot)/wbl/pwrb/src/pwrb_*.wb_load" @ $(co_convert) -Q -l sv_se -d $(doc_dir)/sv_se "$(pwre_sroot)/wbl/pwrb/src/pwrb_*.wb_load"
$(exe_dir)/en_us/pwrb_xtthelp.dat : $(exe_dir)/en_us/pwrb_xtthelp.dat :
@ echo "Generating xtt help files for pwrb classes en_us" @ $(log_xtthelp)
@ $(co_convert) -x -d $(exe_dir)/en_us -y $(bld_dir)/pwrb.d_en_us_xtthelp_wbl "$(pwre_sroot)/wbl/pwrb/src/pwrb_c_*.wb_load" @ $(co_convert) -x -d $(exe_dir)/en_us -y $(bld_dir)/pwrb.d_en_us_xtthelp_wbl "$(pwre_sroot)/wbl/pwrb/src/pwrb_c_*.wb_load"
$(exe_dir)/sv_se/pwrb_xtthelp.dat : $(exe_dir)/sv_se/pwrb_xtthelp.dat :
@ echo "Generating xtt help files for pwrb classes sv_se" @ $(log_xtthelp)
@ $(co_convert) -x -l sv_se -d $(exe_dir)/sv_se -y $(bld_dir)/pwrb.d_sv_se_xtthelp_wbl "$(pwre_sroot)/wbl/pwrb/src/pwrb_c_*.wb_load" @ $(co_convert) -x -l sv_se -d $(exe_dir)/sv_se -y $(bld_dir)/pwrb.d_sv_se_xtthelp_wbl "$(pwre_sroot)/wbl/pwrb/src/pwrb_c_*.wb_load"
#$(export_wbl) : $(cnf_dir)/%.wb_vers : %.wb_load #$(export_wbl) : $(cnf_dir)/%.wb_vers : %.wb_load
......
...@@ -54,72 +54,72 @@ silent : ...@@ -54,72 +54,72 @@ silent :
@ : @ :
$(load_dir)/pwrs.dbs : $(load_dir)/pwrs.dbs :
@ echo "Generating loadfile for pwrs" @ $(log_load)
@ wb_cmd -q -i create snapshot $(wblflags) /file=\"$(pwre_sroot)/wbl/pwrs/src/\"/out=\"$(target)\"/depend=\"$(bld_dir)/pwrs.d_wbl\" @ wb_cmd -q -i create snapshot $(wblflags) /file=\"$(pwre_sroot)/wbl/pwrs/src/\"/out=\"$(target)\"/depend=\"$(bld_dir)/pwrs.d_wbl\"
@ chmod a+w $(target) @ chmod a+w $(target)
$(inc_dir)/pwr_systemclasses.h : $(inc_dir)/pwr_systemclasses.h :
@ echo "Generating struct files for pwrs classes..." @ $(log_struct)
@ $(co_convert) -so -d $(inc_dir) -y $(bld_dir)/pwrs.d_h_wbl "$(pwre_sroot)/wbl/pwrs/src/pwrs_c_*.wb_load" @ $(co_convert) -so -d $(inc_dir) -y $(bld_dir)/pwrs.d_h_wbl "$(pwre_sroot)/wbl/pwrs/src/pwrs_c_*.wb_load"
$(inc_dir)/pwr_systemclasses.hpp : $(inc_dir)/pwr_systemclasses.hpp :
@ echo "Generating hpp files for pwrs classes..." @ $(log_hpp)
@ $(co_convert) -po -d $(inc_dir) -y $(bld_dir)/pwrs.d_hpp_wbl "$(pwre_sroot)/wbl/pwrs/src/pwrs_c_*.wb_load" @ $(co_convert) -po -d $(inc_dir) -y $(bld_dir)/pwrs.d_hpp_wbl "$(pwre_sroot)/wbl/pwrs/src/pwrs_c_*.wb_load"
$(doc_dir)/en_us/orm/pwrs_allclasses.html : $(doc_dir)/en_us/orm/pwrs_allclasses.html :
@ echo "Generating html files for pwrs classes en_us..." @ $(log_html)
@ $(co_convert) -w -d $(doc_dir)/en_us/orm -y $(bld_dir)/pwrs.d_html_wbl -g $(pwre_sroot)/wbl/pwrs/src/cnv_setup.dat "$(pwre_sroot)/wbl/pwrs/src/pwrs_*.wb_load" @ $(co_convert) -w -d $(doc_dir)/en_us/orm -y $(bld_dir)/pwrs.d_html_wbl -g $(pwre_sroot)/wbl/pwrs/src/cnv_setup.dat "$(pwre_sroot)/wbl/pwrs/src/pwrs_*.wb_load"
$(doc_dir)/en_us/orm/pwr_systemclasses_h.html : $(doc_dir)/en_us/orm/pwr_systemclasses_h.html :
@ echo "Generating html files for pwrs structs en_us..." @ $(log_html)
@ $(co_convert) -c -d $(doc_dir)/en_us/orm $(inc_dir)/pwr_systemclasses.h @ $(co_convert) -c -d $(doc_dir)/en_us/orm $(inc_dir)/pwr_systemclasses.h
$(doc_dir)/en_us/orm/pwr_h.html : $(doc_dir)/en_us/orm/pwr_h.html :
@ echo "Generating html files for pwrs structs en_us..." @ $(log_html)
@ $(co_convert) -c -d $(doc_dir)/en_us/orm $(inc_dir)/pwr.h @ $(co_convert) -c -d $(doc_dir)/en_us/orm $(inc_dir)/pwr.h
$(doc_dir)/en_us/orm/pwr_class_h.html : $(doc_dir)/en_us/orm/pwr_class_h.html :
@ echo "Generating html files for pwrs structs en_us..." @ $(log_html)
@ $(co_convert) -c -d $(doc_dir)/en_us/orm $(inc_dir)/pwr_class.h @ $(co_convert) -c -d $(doc_dir)/en_us/orm $(inc_dir)/pwr_class.h
$(doc_dir)/sv_se/orm/pwrs_allclasses.html : $(doc_dir)/sv_se/orm/pwrs_allclasses.html :
@ echo "Generating html files for pwrs classes sv_se..." @ $(log_html)
@ $(co_convert) -w -l sv_se -d $(doc_dir)/sv_se/orm -g $(pwre_sroot)/wbl/pwrs/src/cnv_setup.dat "$(pwre_sroot)/wbl/pwrs/src/pwrs_*.wb_load" @ $(co_convert) -w -l sv_se -d $(doc_dir)/sv_se/orm -g $(pwre_sroot)/wbl/pwrs/src/cnv_setup.dat "$(pwre_sroot)/wbl/pwrs/src/pwrs_*.wb_load"
$(doc_dir)/sv_se/orm/pwr_systemclasses_h.html : $(doc_dir)/sv_se/orm/pwr_systemclasses_h.html :
@ echo "Generating html files for pwrs structs sv_se..." @ $(log_html)
@ $(co_convert) -c -d $(doc_dir)/sv_se/orm $(inc_dir)/pwr_systemclasses.h @ $(co_convert) -c -d $(doc_dir)/sv_se/orm $(inc_dir)/pwr_systemclasses.h
$(doc_dir)/sv_se/orm/pwr_h.html : $(doc_dir)/sv_se/orm/pwr_h.html :
@ echo "Generating html files for pwrs structs sv_se..." @ $(log_html)
@ $(co_convert) -c -d $(doc_dir)/sv_se/orm $(inc_dir)/pwr.h @ $(co_convert) -c -d $(doc_dir)/sv_se/orm $(inc_dir)/pwr.h
$(doc_dir)/sv_se/orm/pwr_class_h.html : $(doc_dir)/sv_se/orm/pwr_class_h.html :
@ echo "Generating html files for pwrs structs sv_se..." @ $(log_html)
@ $(co_convert) -c -d $(doc_dir)/sv_se/orm $(inc_dir)/pwr_class.h @ $(co_convert) -c -d $(doc_dir)/sv_se/orm $(inc_dir)/pwr_class.h
$(doc_dir)/en_us/pwrs.ps : $(doc_dir)/en_us/pwrs.ps :
@ echo "Generating postscript file for pwrs classes..." @ $(log_ps)
@ $(co_convert) -q -d $(doc_dir)/en_us "$(pwre_sroot)/wbl/pwrs/src/pwrs_*.wb_load" @ $(co_convert) -q -d $(doc_dir)/en_us "$(pwre_sroot)/wbl/pwrs/src/pwrs_*.wb_load"
$(doc_dir)/sv_se/pwrs.ps : $(doc_dir)/sv_se/pwrs.ps :
@ echo "Generating postscript file for pwrs classes..." @ $(log_ps)
@ $(co_convert) -q -l sv_se -d $(doc_dir)/sv_se "$(pwre_sroot)/wbl/pwrs/src/pwrs_*.wb_load" @ $(co_convert) -q -l sv_se -d $(doc_dir)/sv_se "$(pwre_sroot)/wbl/pwrs/src/pwrs_*.wb_load"
$(doc_dir)/en_us/pwrs.pdf : $(doc_dir)/en_us/pwrs.pdf :
@ echo "Generating pdf file for pwrs classes..." @ $(log_pdf)
@ $(co_convert) -Q -d $(doc_dir)/en_us "$(pwre_sroot)/wbl/pwrs/src/pwrs_*.wb_load" @ $(co_convert) -Q -d $(doc_dir)/en_us "$(pwre_sroot)/wbl/pwrs/src/pwrs_*.wb_load"
$(doc_dir)/sv_se/pwrs.pdf : $(doc_dir)/sv_se/pwrs.pdf :
@ echo "Generating pdf file for pwrs classes..." @ $(log_pdf)
@ $(co_convert) -Q -l sv_se -d $(doc_dir)/sv_se "$(pwre_sroot)/wbl/pwrs/src/pwrs_*.wb_load" @ $(co_convert) -Q -l sv_se -d $(doc_dir)/sv_se "$(pwre_sroot)/wbl/pwrs/src/pwrs_*.wb_load"
$(exe_dir)/en_us/pwrs_xtthelp.dat : $(exe_dir)/en_us/pwrs_xtthelp.dat :
@ echo "Generating xtt help files for pwrs classes en_us" @ $(log_xtthelp)
@ $(co_convert) -x -d $(exe_dir)/en_us -y $(bld_dir)/pwrs.d_en_us_xtthelp_wbl "$(pwre_sroot)/wbl/pwrs/src/pwrs_*.wb_load" @ $(co_convert) -x -d $(exe_dir)/en_us -y $(bld_dir)/pwrs.d_en_us_xtthelp_wbl "$(pwre_sroot)/wbl/pwrs/src/pwrs_*.wb_load"
$(exe_dir)/sv_se/pwrs_xtthelp.dat : $(exe_dir)/sv_se/pwrs_xtthelp.dat :
@ echo "Generating xtt help files for pwrs classes sv_se" @ echo $(log_xtthelp)
@ $(co_convert) -x -l sv_se -d $(exe_dir)/sv_se -y $(bld_dir)/pwrs.d_sv_se_xtthelp_wbl "$(pwre_sroot)/wbl/pwrs/src/pwrs_*.wb_load" @ $(co_convert) -x -l sv_se -d $(exe_dir)/sv_se -y $(bld_dir)/pwrs.d_sv_se_xtthelp_wbl "$(pwre_sroot)/wbl/pwrs/src/pwrs_*.wb_load"
...@@ -150,7 +150,7 @@ clean_systemclasses : ...@@ -150,7 +150,7 @@ clean_systemclasses :
fi fi
$(bld_dir)$(dir_ext) : $(bld_dir)$(dir_ext) :
@ echo "pwrs makefile $(basename $@)" @ $(log_mkdir)
@ $(mkdir) $(mkdirflags) $(basename $@) @ $(mkdir) $(mkdirflags) $(basename $@)
-include $(bld_dir)/pwrs.d_h_wbl -include $(bld_dir)/pwrs.d_h_wbl
......
...@@ -38,7 +38,7 @@ silent : ...@@ -38,7 +38,7 @@ silent :
@ : @ :
$(load_dir)/rt.dbs : $(load_dir)/rt.dbs :
@ echo "Generating snapshot for rt" @ $(log_load)
@ wb_cmd -i -q create snapshot /file=\"$(pwre_sroot)/wbl/rt/src/rt.wb_load\"/out=\"$(target)\"/depend=\"$(bld_dir)/rt.d_wbl\" @ wb_cmd -i -q create snapshot /file=\"$(pwre_sroot)/wbl/rt/src/rt.wb_load\"/out=\"$(target)\"/depend=\"$(bld_dir)/rt.d_wbl\"
@ if [ -e $(target) ]; then \ @ if [ -e $(target) ]; then \
chmod a+w $(target); \ chmod a+w $(target); \
......
...@@ -38,7 +38,7 @@ silent : ...@@ -38,7 +38,7 @@ silent :
@ : @ :
$(load_dir)/wb.dbs : $(load_dir)/wb.dbs :
@ echo "Generating snapshot for wb" @ $(log_load)
@ wb_cmd -i -q create snapshot /file=\"$(pwre_sroot)/wbl/wb/src/wb.wb_load\"/out=\"$(target)\"/depend=\"$(bld_dir)/wb.d_wbl\" @ wb_cmd -i -q create snapshot /file=\"$(pwre_sroot)/wbl/wb/src/wb.wb_load\"/out=\"$(target)\"/depend=\"$(bld_dir)/wb.d_wbl\"
@ if [ -e $(target) ]; then \ @ if [ -e $(target) ]; then \
chmod a+w $(target); \ chmod a+w $(target); \
......
...@@ -9,20 +9,20 @@ copy : $(doc_dir)/sv_se/orm/ssabox_plc_antisway_c.html \ ...@@ -9,20 +9,20 @@ copy : $(doc_dir)/sv_se/orm/ssabox_plc_antisway_c.html \
$(doc_dir)/sv_se/orm/ssabox_plc_antisway_c.html : \ $(doc_dir)/sv_se/orm/ssabox_plc_antisway_c.html : \
$(pwre_sroot)/lib/ssabox/src/ssabox_plc_antisway.c $(pwre_sroot)/lib/ssabox/src/ssabox_plc_antisway.c
@ echo "Generating html files for ssabox plc antiway code sv_se..." @ $(log_html)
@ $(co_convert) -c -d $(doc_dir)/sv_se/orm "$(source)" @ $(co_convert) -c -d $(doc_dir)/sv_se/orm "$(source)"
$(doc_dir)/en_us/orm/ssabox_plc_antisway_c.html : \ $(doc_dir)/en_us/orm/ssabox_plc_antisway_c.html : \
$(pwre_sroot)/lib/ssabox/src/ssabox_plc_antisway.c $(pwre_sroot)/lib/ssabox/src/ssabox_plc_antisway.c
@ echo "Generating html files for ssabox plc antisway code en_us..." @ $(log_html)
@ $(co_convert) -c -d $(doc_dir)/en_us/orm "$(source)" @ $(co_convert) -c -d $(doc_dir)/en_us/orm "$(source)"
$(doc_dir)/sv_se/orm/ssabox_plc_servoreg_c.html : \ $(doc_dir)/sv_se/orm/ssabox_plc_servoreg_c.html : \
$(pwre_sroot)/lib/ssabox/src/ssabox_plc_servoreg.c $(pwre_sroot)/lib/ssabox/src/ssabox_plc_servoreg.c
@ echo "Generating html files for ssabox plc servoreg code sv_se..." @ $(log_html)
@ $(co_convert) -c -d $(doc_dir)/sv_se/orm "$(source)" @ $(co_convert) -c -d $(doc_dir)/sv_se/orm "$(source)"
$(doc_dir)/en_us/orm/ssabox_plc_servoreg_c.html : \ $(doc_dir)/en_us/orm/ssabox_plc_servoreg_c.html : \
$(pwre_sroot)/lib/ssabox/src/ssabox_plc_servoreg.c $(pwre_sroot)/lib/ssabox/src/ssabox_plc_servoreg.c
@ echo "Generating html files for ssabox plc servoreg code en_us..." @ $(log_html)
@ $(co_convert) -c -d $(doc_dir)/en_us/orm "$(source)" @ $(co_convert) -c -d $(doc_dir)/en_us/orm "$(source)"
...@@ -58,12 +58,12 @@ silent : ...@@ -58,12 +58,12 @@ silent :
@ : @ :
$(export_sh) : $(exe_dir)/%.sh : %.sh $(export_sh) : $(exe_dir)/%.sh : %.sh
@ echo "Exporting $< ..." @ $(log_exp)
@ $(cp) $(cpflags) $(source) $(target) @ $(cp) $(cpflags) $(source) $(target)
$(export_pwr_com) : $(exe_dir)/%.pwr_com : %.pwr_com $(export_pwr_com) : $(exe_dir)/%.pwr_com : %.pwr_com
@ echo "Exporting $< ..." @ $(log_exp)
@ $(cp) $(cpflags) $(source) $(target) @ $(cp) $(cpflags) $(source) $(target)
$(clean_sh) : clean_%.sh : %.sh $(clean_sh) : clean_%.sh : %.sh
......
...@@ -36,7 +36,7 @@ silent : ...@@ -36,7 +36,7 @@ silent :
$(exe_dir)/pwrwb.so : pwrwbmodule.cpp $(exe_dir)/pwrwb.so : pwrwbmodule.cpp
@ if [ "$(PWRE_CONF_PYDEV)" = "1" ]; then\ @ if [ "$(PWRE_CONF_PYDEV)" = "1" ]; then\
echo "Bulding Python c extension pwrwb";\ $(log_pyext);\
python setup_pwrwb.py -q build --build-base $(bld_dir);\ python setup_pwrwb.py -q build --build-base $(bld_dir);\
if [ "$(pwre_hw)" = "hw_x86_64" ]; then \ if [ "$(pwre_hw)" = "hw_x86_64" ]; then \
mv $(bld_dir)/lib.linux-x86_64-2.7/pwrwb.so $(pwr_exe); \ mv $(bld_dir)/lib.linux-x86_64-2.7/pwrwb.so $(pwr_exe); \
...@@ -45,7 +45,7 @@ $(exe_dir)/pwrwb.so : pwrwbmodule.cpp ...@@ -45,7 +45,7 @@ $(exe_dir)/pwrwb.so : pwrwbmodule.cpp
fi;\ fi;\
python setup_pwrwb.py -q install_egg_info --install-dir $(pwr_exe);\ python setup_pwrwb.py -q install_egg_info --install-dir $(pwr_exe);\
else\ else\
echo "Not building Python c extension pwrwb";\ $(log_no);\
fi fi
clean_pwrwb.so : pwrwbmodule.cpp clean_pwrwb.so : pwrwbmodule.cpp
......
...@@ -82,7 +82,7 @@ silent : ...@@ -82,7 +82,7 @@ silent :
@ : @ :
$(exe_dir)/pwr_wb_palette.cnf : pwr_wb_palette.cnf $(exe_dir)/pwr_wb_palette.cnf : pwr_wb_palette.cnf
@ echo "Copying pwr_wb_palette.cnf" @ $(log_cp)
@ $(cp) $(cpflags) $(source) $(target) @ $(cp) $(cpflags) $(source) $(target)
$(clean_h) : clean_%.h : %.h $(clean_h) : clean_%.h : %.h
......
...@@ -114,5 +114,5 @@ $(clean_web) : clean_%.pwgc : %.pwgc ...@@ -114,5 +114,5 @@ $(clean_web) : clean_%.pwgc : %.pwgc
@ $(rm) $(rmflags) $(web_dir)/$*.pwgc @ $(rm) $(rmflags) $(web_dir)/$*.pwgc
$(exe_dir)/pwr_css.css : pwr_css.css $(exe_dir)/pwr_css.css : pwr_css.css
@ echo "copy $(source) $(target)" @ $(log_cp)
@ cp $(source) $(target) @ cp $(source) $(target)
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