Skip to content

Commit

Permalink
Fixed root dictionary generation for out-of-tree build
Browse files Browse the repository at this point in the history
  • Loading branch information
oschulz committed Feb 10, 2016
1 parent e94bb0a commit 026dd52
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/Makefile.am
Original file line number Diff line number Diff line change
Expand Up @@ -85,7 +85,7 @@ libdatabricxx_rdict.cxx: $(libdatabricxx_la_headers) databricxx_LinkDef.h
$(ROOTCLING) -f $@.tmp -s libdatabricxx@SHLIBEXT@ -rml libdatabricxx@SHLIBEXT@ -rmf libdatabricxx.rootmap.tmp -c $(CPPFLAGS) $(CXXFLAGS) -I$(includedir) $+
@# Some magic to prefix header names with "$(PACKAGE)/", and only that, in dictionary and rootmap:
$(GREP) -F -v '"'"`pwd`"'/",' $@.tmp | $(SED) 's|"\([^"]*/\)\?\([^/"]*[.]h\)",|"'$(PACKAGE)/'\2",| ; s|\\"\([^"]*/\)\?\([^/"]*[.]h\)\\"\\n"|\\"'$(PACKAGE)/'\2\\"\\n"|' > $@.tmp2
$(SED) 's|\$$clingAutoload\$$\([^/""]\+/\)*|$$clingAutoload$$'$(PACKAGE)'/|; /.*DICTPAYLOAD(.*/,/.*)DICTPAYLOAD.*/ s|#include "\([^/"]\+/\)*\(.*\)"|#include <'$(PACKAGE)'/\2>|' $@.tmp2 > $@ && $(RM) $@.tmp $@.tmp2
$(SED) 's|\$$clingAutoload\$$/\?\([^/""]\+/\)*|$$clingAutoload$$'$(PACKAGE)'/|; /.*DICTPAYLOAD(.*/,/.*)DICTPAYLOAD.*/ s|#include "/\?\([^/"]\+/\)*\(.*\)"|#include <'$(PACKAGE)'/\2>|' $@.tmp2 > $@ && $(RM) $@.tmp $@.tmp2
$(SED) 's|\(header \+\)\([^ ].*/\)\?\([^ ].*[.]h\)|\1'$(PACKAGE)/'\3|' libdatabricxx.rootmap.tmp > libdatabricxx.rootmap && $(RM) libdatabricxx.rootmap.tmp

.libs/libdatabricxx.rootmap: libdatabricxx.la
Expand Down

0 comments on commit 026dd52

Please sign in to comment.