Skip to content

Commit

Permalink
Update Makefile
Browse files Browse the repository at this point in the history
  • Loading branch information
SurFlurer authored Mar 6, 2023
1 parent 3dc5ca4 commit 2961f10
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -986,7 +986,7 @@ $(TEST_MO): data/mods/TEST_DATA/lang/po/ru.po

MO_DEPS := \
$(wildcard lang/*.sh lang/*.py src/*.cpp src/*.h) \
$(shell find -printf '"%p"\n' data/raw data/json data/mods data/core data/help -type f -name '*.json')
$(shell find data/raw data/json data/mods data/core data/help -type f -name '*.json' | sed "/./{s/^/'/;s/\$/'/}" )

lang/mo_built.stamp: $(MO_DEPS)
$(MAKE) -C lang
Expand Down Expand Up @@ -1243,7 +1243,7 @@ else
@echo Cannot run an astyle check, your system either does not have astyle, or it is too old.
endif

JSON_SOURCES := $(shell find data -name '* *' -prune -o -name "*.json" -print)
JSON_SOURCES := $(shell find data -name '* *' -prune -o -name "*.json" -print | sed "/./{s/^/'/;s/\$/'/}" )
JSON_CHECK_STAMPS = $(sort $(patsubst %,$(ODIR)/%,$(JSON_SOURCES:.json=.jstyle-check-stamp)))
style-json : $(JSON_CHECK_STAMPS) $(JSON_FORMATTER_BIN)
$(JSON_CHECK_STAMPS) : $(ODIR)/%.jstyle-check-stamp : %.json $(JSON_FORMATTER_BIN)
Expand Down

0 comments on commit 2961f10

Please sign in to comment.