From d47fcd290a777d2beb97ab419f8d56ca9aa1d600 Mon Sep 17 00:00:00 2001 From: Ivan Zorin Date: Fri, 16 Jun 2023 21:09:36 +0300 Subject: [PATCH] source/Makefile: update for -C support --- source/Makefile | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/source/Makefile b/source/Makefile index 092b4e4c16..6c104c889e 100644 --- a/source/Makefile +++ b/source/Makefile @@ -655,14 +655,14 @@ Core/Gen/Translation.%.cpp $(OUTPUT_DIR)/Core/Gen/translation.files/%.pickle: .. @test -d $(OUTPUT_DIR)/Core/Gen/translation.files || mkdir -p $(OUTPUT_DIR)/Core/Gen/translation.files @echo 'Generating translations for language $*' @$(HOST_PYTHON) ../Translations/make_translation.py \ - --macros $(PWD)/Core/Gen/macros.txt \ - -o $(PWD)/Core/Gen/Translation.$*.cpp \ + --macros $(CURDIR)/Core/Gen/macros.txt \ + -o $(CURDIR)/Core/Gen/Translation.$*.cpp \ --output-pickled $(OUTPUT_DIR)/Core/Gen/translation.files/$*.pickle \ $* Core/Gen/macros.txt: Makefile - @test -d Core/Gen || mkdir -p Core/Gen - echo "#include " | $(CC) -dM -E $(CFLAGS) -MF Core/Gen/macros.tmp - > $(PWD)/Core/Gen/macros.txt + @test -d $(CURDIR)/Core/Gen || mkdir -p $(CURDIR)/Core/Gen + echo "#include " | $(CC) -dM -E $(CFLAGS) -MF $(CURDIR)/Core/Gen/macros.tmp - > $(CURDIR)/Core/Gen/macros.txt #