Makefile
InputFiles=190209_124217_Scanner_1_0.sdc
OutputFolder=$(abspath $(dir $(firstword $(MAKEFILE_LIST))))
gridname=TestData
# Define a gmake function to encode paths in URL format
encode=$(subst :,%3A,$(subst /,%2F,$(1)))
# Calling the gmake function for string encoding
InputFiles.enc=$(call encode,$(InputFiles))
OutputFolder.enc=$(call encode,$(OutputFolder))
export REQUEST_METHOD=GET
# Rule to convert an SDC file, setting the QUERY_STRING environment variable as part of the rule
190209_124210_Scanner_1_0.f5: $(InputFiles)
QUERY_STRING="InputFiles=$(InputFiles.enc)&Nutrition%3A%3Agridname=$(gridname)&Output+Folder=$(OutputFolder.enc)&Nutrition=SDC+to+F5&Action=Process" \
../../../bin/win64/HydroVish.exe
clean:
$(RM) 190209_124210_Scanner_1_0.f5