[game-data-packager] 01/01: build: don't keep .json on error, force rebuild on next make invocation

Alexandre Detiste detiste-guest at moszumanska.debian.org
Wed Apr 15 09:01:37 UTC 2015


This is an automated email from the git hooks/post-receive script.

detiste-guest pushed a commit to branch master
in repository game-data-packager.

commit 8f3ae03430a8842ee19a9c2e62ec2cda2dc28aff
Author: Alexandre Detiste <alexandre.detiste at gmail.com>
Date:   Wed Apr 15 10:59:56 2015 +0200

    build: don't keep .json on error,force rebuild on next make invocation
---
 Makefile | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/Makefile b/Makefile
index dbb9196..39948d5 100644
--- a/Makefile
+++ b/Makefile
@@ -27,7 +27,7 @@ out/%: data/%
 	if [ -L $< ]; then cp -a $< $@ ; else install -m644 $< $@ ; fi
 
 out/%.json: data/%.yaml
-	python3 game_data_packager/yaml2json.py $< > $@
+	python3 game_data_packager/yaml2json.py $< > $@ || rm -f $@
 
 out/bash_completion: $(in_yaml)
 	python3 game_data_packager/bash_completion.py > ./out/bash_completion

-- 
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/pkg-games/game-data-packager.git



More information about the Pkg-games-commits mailing list