do away with symbols.template in windows

If the one provided in the zip/distribution is newer, replace
the one used by the game after renaming the current one to
symbols.save.

If the one used by the game is newer, do nothing with it.
This commit is contained in:
nhmall
2022-01-29 14:04:20 -05:00
parent 9b38353833
commit 721db76189
3 changed files with 10 additions and 7 deletions
+2 -2
View File
@@ -772,7 +772,7 @@ CLEAN_FILE += $(NHTARGET) $(NHOBJS) $(NHRES)
all: install
TO_INSTALL = $(GAMEDIR)/NetHack.exe $(RTARGETS) \
$(addprefix $(GAMEDIR)/, $(addsuffix .template, sysconf symbols .nethackrc) \
$(addprefix $(GAMEDIR)/, $(addsuffix .template, sysconf .nethackrc) \
Guidebook.txt NetHack.txt license opthelp record)
ifeq "$(USE_LUADLL)" "Y"
@@ -798,7 +798,7 @@ ifneq "$(USE_DLB)" "Y"
endif
@echo NetHack is up to date.
$(GAMEDIR)/symbols.template: $(DAT)/symbols
$(GAMEDIR)/symbols: $(DAT)/symbols
cp $< $@
$(GAMEDIR)/NetHack.txt: $(DOC)/nethack.txt