]> git.uio.no Git - u/mrichter/AliRoot.git/commitdiff
Avoiding the creation of empty fles with funny dates
authoralibrary <alibrary@f7af4fe6-9843-0410-8265-dc069ae4e863>
Sat, 27 Oct 2007 19:13:52 +0000 (19:13 +0000)
committeralibrary <alibrary@f7af4fe6-9843-0410-8265-dc069ae4e863>
Sat, 27 Oct 2007 19:13:52 +0000 (19:13 +0000)
build/module.tpl

index f519e37058b21c638b1c929d34c5c89303cfec6e..357464e69f37b17eeb9415fdd8fe27921bc8c9cb 100644 (file)
@@ -413,6 +413,7 @@ $(@PACKAGE@SML:.smell=_h.ml) : $(MODDIRZ)/%_h.ml : $(MODDIR)/%.h
 $(@PACKAGE@SML) : $(MODDIRZ)/%.smell : $(MODDIRZ)/%_cxx.ml $(MODDIRZ)/%_h.ml
        $(MUTE)echo smelling $@
        $(MUTE)java -classpath $(SMELL_DETECTOR_DIR):$(SMELL_DETECTOR_DIR)/xom-1.1.jar -Xmx500m SmellDetector $? > $@
+       $(MUTE)[ -s $@ ] || touch $@
 
 .SECONDARY: $(@PACKAGE@SML:.smell=_cxx.ml) $(@PACKAGE@SML:.smell=_h.ml)