@@ -4,10 +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 )
10- BASE_DIR := $(shell pwd)
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 ) /)
1110export DICT_DIR
1211
1312.PHONY : all
@@ -32,7 +31,7 @@ $(DICT_DIR)::
3231.PHONY : write
3332write :: $(WRITE_C )
3433$(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")'
34+ @LD_LIBRARY_PATH=" $$ {LD_LIBRARY_PATH:+$$ LD_LIBRARY_PATH:}$( DICT_DIR) " $(ROOT_EXE ) -q -l ' $@("$(WRITE_DIR)$(subst /,.,$(shell dirname $@)).root")'
3635$(WRITE_DIR ) ::
3736 @mkdir -p $@
3837 $(info Storing root files in: '$@ ')
@@ -41,7 +40,7 @@ $(WRITE_DIR)::
4140read :: $(READ_C )
4241$(READ_C ) :: $(READ_DIR )
4342 @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")'
43+ ' $@("$(WRITE_DIR)/$(subst /,.,$(shell dirname $@)).root", "$(READ_DIR)$(subst /,.,$(shell dirname $@)).json")'
4544$(READ_DIR ) ::
4645 @mkdir -p $@
4746 $(info Storing root files in: '$@ ')
0 commit comments