@@ -4,9 +4,9 @@ $(error Could not find root.exe)
44endif
55
66# directory arguments can be empty -> no sudirectories will be created, everything will be stored directly in those folders
7- DICT_DIR := $(shell pwd) /dict/$(dict_dir )
8- WRITE_DIR := $(shell pwd) /write/$(write_dir )
9- READ_DIR := $(shell pwd) /read/$(write_dir ) / $( read_dir )
7+ DICT_DIR := $(shell pwd) /dict/$(if $( dict_dir ) , $( dict_dir ) / )
8+ WRITE_DIR := $(shell pwd) /write/$(if $( write_dir ) , $( write_dir ) / )
9+ READ_DIR := $(shell pwd) /read/$(if $( write_dir ), $( write_dir ) /)$( if $( read_dir ) , $( read_dir ) / )
1010BASE_DIR := $(shell pwd)
1111export DICT_DIR
1212
@@ -32,7 +32,7 @@ $(DICT_DIR)::
3232.PHONY : write
3333write :: $(WRITE_C )
3434$(WRITE_C ) :: $(WRITE_DIR )
35- @LD_LIBRARY_PATH=" $$ {LD_LIBRARY_PATH:+$$ LD_LIBRARY_PATH:}$( DICT_DIR) " $(ROOT_EXE ) -q -l ' $@("$(WRITE_DIR)/ $(subst /,.,$(shell dirname $@)).root")'
35+ @LD_LIBRARY_PATH=" $$ {LD_LIBRARY_PATH:+$$ LD_LIBRARY_PATH:}$( DICT_DIR) " $(ROOT_EXE ) -q -l ' $@("$(WRITE_DIR)$(subst /,.,$(shell dirname $@)).root")'
3636$(WRITE_DIR ) ::
3737 @mkdir -p $@
3838 $(info Storing root files in: '$@ ')
@@ -41,7 +41,7 @@ $(WRITE_DIR)::
4141read :: $(READ_C )
4242$(READ_C ) :: $(READ_DIR )
4343 @LD_LIBRARY_PATH=" $$ {LD_LIBRARY_PATH:+$$ LD_LIBRARY_PATH:}$( DICT_DIR) " $(ROOT_EXE ) -q -l \
44- ' $@("$(WRITE_DIR)/$(subst /,.,$(shell dirname $@)).root", "$(READ_DIR)/ $(subst /,.,$(shell dirname $@)).json")'
44+ ' $@("$(WRITE_DIR)/$(subst /,.,$(shell dirname $@)).root", "$(READ_DIR)$(subst /,.,$(shell dirname $@)).json")'
4545$(READ_DIR ) ::
4646 @mkdir -p $@
4747 $(info Storing root files in: '$@ ')
0 commit comments