Fix passing of version define to qmake

You have to love the triple quoting in `\\\\\\\"` to get
the correct quote output in the final makefile...

Signed-off-by: Christophe de Dinechin <christophe@dinechin.org>
This commit is contained in:
Christophe de Dinechin 2023-07-02 09:15:23 +02:00
parent caf7484a5d
commit d703c44d82

View file

@ -59,8 +59,9 @@ install-help: help/$(TARGET).md
sim: sim/simulator.mak sim/gcc111libbid.a recorder/config.h help/$(TARGET).md .ALWAYS sim: sim/simulator.mak sim/gcc111libbid.a recorder/config.h help/$(TARGET).md .ALWAYS
cd sim; make -f $(<F) cd sim; make -f $(<F)
sim/simulator.mak: sim/simulator.pro sim/simulator.mak: sim/simulator.pro Makefile
cd sim; qmake $(<F) -o $(@F) CONFIG+=$(OPT) cd sim; qmake $(<F) -o $(@F) CONFIG+=$(OPT) DEFINES+=DB48X_VERSION=\\\\\\\"$(VERSION)\\\\\\\"
ttf2font: $(TOOLS)/ttf2fonts/ttf2fonts ttf2font: $(TOOLS)/ttf2fonts/ttf2fonts
$(TOOLS)/ttf2fonts/ttf2fonts: $(TOOLS)/ttf2font/ttf2font.cpp $(TOOLS)/ttf2font/Makefile $(TOOLS)/ttf2fonts/ttf2fonts: $(TOOLS)/ttf2font/ttf2font.cpp $(TOOLS)/ttf2font/Makefile
cd $(TOOLS)/ttf2font; $(MAKE) cd $(TOOLS)/ttf2font; $(MAKE)