diff --git a/Module.mk b/Module.mk index b33b7239..d8b7596a 100644 --- a/Module.mk +++ b/Module.mk @@ -137,10 +137,6 @@ distclean:: distclean-$(MODNAME) $(CLINGDIRS)/Module.mk: $(LLVMCONFIG) -etc/cling/%.h: $(call stripsrc,$(CLINGDIR))/include/cling/%.h - +@[ -d $(dir $@) ] || mkdir -p $(dir $@) - @cp $< $@ - etc/cling/llvm/%: $(call stripsrc,$(LLVMDIRI))/include/llvm/% +@[ -d $(dir $@) ] || mkdir -p $(dir $@) @cp $< $@ @@ -153,6 +149,10 @@ etc/cling/cint/%: $(CLINGDIR)/include/cling/cint/% +@[ -d $(dir $@) ] || mkdir -p $(dir $@) @cp $< $@ +etc/cling/%.h: $(CLINGDIR)/include/cling/%.h + +@[ -d $(dir $@) ] || mkdir -p $(dir $@) + @cp $< $@ + $(CLINGDIR)/%.o: $(CLINGDIR)/%.cpp $(LLVMDEP) $(MAKEDEP) -R -f$(@:.o=.d) -Y -w 1000 -- $(CXXFLAGS) $(CLINGCXXFLAGS) -D__cplusplus -- $< $(CXX) $(OPT) $(CLINGCXXFLAGS) $(CXXOUT)$@ -c $<