new ALIRECO.par target for creating the reconstruction par file. Uses loadlibsrec...
authorcvetan <cvetan@f7af4fe6-9843-0410-8265-dc069ae4e863>
Tue, 12 Aug 2008 13:06:27 +0000 (13:06 +0000)
committercvetan <cvetan@f7af4fe6-9843-0410-8265-dc069ae4e863>
Tue, 12 Aug 2008 13:06:27 +0000 (13:06 +0000)
Makefile
STEER/PROOF-INF.ALIRECO/SETUP.C [new file with mode: 0644]

index 1452fe4..bef26fb 100644 (file)
--- a/Makefile
+++ b/Makefile
@@ -274,6 +274,14 @@ endif
 
 aliroot: alilibs $(BINPATH) $(ALLEXECS) 
 
+ALIRECO.par: macros/loadlibsrec.C STEER/PROOF-INF.ALIRECO/SETUP.C
+       $(MUTE)echo "***** Creating package archive" $@ "*****"
+       $(MUTE)rm -rf ALIRECO
+       $(MUTE)mkdir -p ALIRECO/PROOF-INF
+       $(MUTE)cat $^ > ALIRECO/PROOF-INF/SETUP.C
+       (tar cfzh $@ ALIRECO 2> /dev/null && echo "Package archive" $@ "created in" $(PWD)/$@) || (tar cfzh /tmp/$@ ALIRECO 2> /dev/null && echo "Package archive" $@ "created in /tmp/"$@)
+       $(MUTE)rm -rf ALIRECO
+
 ROOTALIBDIR=$(shell root-config --libdir)
 
 ALIMDCSPECFILE=$(RAWDIRO)/alimdc.spec
diff --git a/STEER/PROOF-INF.ALIRECO/SETUP.C b/STEER/PROOF-INF.ALIRECO/SETUP.C
new file mode 100644 (file)
index 0000000..7ce5bff
--- /dev/null
@@ -0,0 +1,8 @@
+void SETUP()
+{
+  gSystem->Load("libProof.so");
+  gSystem->Load("libGui.so");
+
+  loadlibsrec();
+}
+