fixing bug in par file creation when package name was equally to a directory name...
authorjgrosseo <jgrosseo@f7af4fe6-9843-0410-8265-dc069ae4e863>
Tue, 23 Nov 2010 16:26:03 +0000 (16:26 +0000)
committerjgrosseo <jgrosseo@f7af4fe6-9843-0410-8265-dc069ae4e863>
Tue, 23 Nov 2010 16:26:03 +0000 (16:26 +0000)
added par file support for EventMixing library

ANALYSIS/Makefile
ANALYSIS/PROOF-INF.EventMixing/BUILD.sh [new file with mode: 0755]
ANALYSIS/PROOF-INF.EventMixing/SETUP.C [new file with mode: 0644]
build/module.tpl

index df7f64f..4355e04 100644 (file)
@@ -24,6 +24,10 @@ ifneq ($(ANALYSIS_INCLUDE),)
    ALICEINC += -I../$(ANALYSIS_INCLUDE)
 endif
 
+ifneq ($(ANALYSISalice_INCLUDE),)
+   ALICEINC += -I../$(ANALYSISalice_INCLUDE)
+endif
+
 # only if no par file was loaded before
 ifeq ($(ALICEINC),-I.)
   ifneq ($(ALICE_ROOT),)
diff --git a/ANALYSIS/PROOF-INF.EventMixing/BUILD.sh b/ANALYSIS/PROOF-INF.EventMixing/BUILD.sh
new file mode 100755 (executable)
index 0000000..fc9490a
--- /dev/null
@@ -0,0 +1,3 @@
+#! /bin/sh
+
+make 
diff --git a/ANALYSIS/PROOF-INF.EventMixing/SETUP.C b/ANALYSIS/PROOF-INF.EventMixing/SETUP.C
new file mode 100644 (file)
index 0000000..7c75e71
--- /dev/null
@@ -0,0 +1,12 @@
+void SETUP()
+{
+  // Load the ANALYSIS library
+   gSystem->Load("libEventMixing");
+
+   // Set the include paths
+   gROOT->ProcessLine(".include EventMixing");
+   gROOT->ProcessLine(".include EventMixing/EventMixing");
+
+   // Set our location, so that other packages can find us
+   gSystem->Setenv("EventMixing_INCLUDE", "EventMixing");
+}
index 9d2548d..6178429 100644 (file)
@@ -362,27 +362,27 @@ $(@PACKAGE@SML) : $(MODDIRZ)/%.smell : $(MODDIRZ)/%_cxx.ml $(MODDIRZ)/%_h.ml
 .SECONDARY: $(@PACKAGE@SML:.smell=_cxx.ml) $(@PACKAGE@SML:.smell=_h.ml)
 
 # targets to create .par archives (jgrosseo)
-@PACKAGE@.par: $(patsubst %,@MODULE@/@PACKAGE@/%,$(filter-out dict.%, $(HDRS) $(SRCS) $(DHDR) $(PKGFILE) $(FSRCS) Makefile Makefile.arch lib@PACKAGE@.pkg PROOF-INF))
+@PACKAGE@.par: $(patsubst %,par-build/@MODULE@/@PACKAGE@/%,$(filter-out dict.%, $(HDRS) $(SRCS) $(DHDR) $(PKGFILE) $(FSRCS) Makefile Makefile.arch lib@PACKAGE@.pkg PROOF-INF))
        @echo "Creating archive" $@ ...
-       @cd @MODULE@; (tar --exclude=.svn -czhf ../$@ @PACKAGE@ 2> /dev/null && echo "package" $@ "created in" $(PWD)/$@) || (tar --exclude=.svn -czhf /tmp/$@ @PACKAGE@ 2> /dev/null && echo "package" $@ "created in /tmp/"$@)
-       @rm -rf @MODULE@/@PACKAGE@
+       @cd par-build/@MODULE@; (tar --exclude=.svn -czhf ../../$@ @PACKAGE@ 2> /dev/null && echo "package" $@ "created in" $(PWD)/$@) || (tar --exclude=.svn -czhf /tmp/$@ @PACKAGE@ 2> /dev/null && echo "package" $@ "created in /tmp/"$@)
+       @rm -rf par-build/@MODULE@/@PACKAGE@
 
-@MODULE@/@PACKAGE@/Makefile: @MODULE@/Makefile
+par-build/@MODULE@/@PACKAGE@/Makefile: @MODULE@/Makefile
        @echo Copying $< to $@ with transformations
        @[ -d $(dir $@) ] || mkdir -p $(dir $@)
        @sed 's/include \$$(ROOTSYS)\/test\/Makefile.arch/include Makefile.arch/; s/PACKAGE = .*/PACKAGE = @PACKAGE@/' < $^ > $@
 
-@MODULE@/@PACKAGE@/Makefile.arch: $(ROOTSYS)/test/Makefile.arch
+par-build/@MODULE@/@PACKAGE@/Makefile.arch: $(ROOTSYS)/test/Makefile.arch
        @echo Copying $< to $@
        @[ -d $(dir $@) ] || mkdir -p $(dir $@)
        @cp -pR $^ $@
 
-@MODULE@/@PACKAGE@/PROOF-INF: @MODULE@/PROOF-INF.@PACKAGE@
+par-build/@MODULE@/@PACKAGE@/PROOF-INF: @MODULE@/PROOF-INF.@PACKAGE@
        @echo Copying $< to $@
        @[ -d $(dir $@) ] || mkdir -p $(dir $@)
        @cp -pR $^ $@
 
-@MODULE@/@PACKAGE@/%: @MODULE@/%
+par-build/@MODULE@/@PACKAGE@/%: @MODULE@/%
        @echo Copying $< to $@
        @[ -d $(dir $@) ] || mkdir -p $(dir $@)
        @cp -pR $< $@