Skip to content
This repository has been archived by the owner on Nov 9, 2017. It is now read-only.

Commit

Permalink
Abort Makefile if Makefile.py fails.
Browse files Browse the repository at this point in the history
  • Loading branch information
chromakode committed Aug 8, 2012
1 parent 705e1bb commit 768663b
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 0 deletions.
4 changes: 4 additions & 0 deletions r2/Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,11 @@ DEFS_FILE := Makefile.defs
.PHONY: $(DEFS_FILE)
$(shell $(PYTHON) $(DEFS_PY) > $(DEFS_FILE))
include $(DEFS_FILE)
ifdef DEFS_SUCCESS
$(info [+] including definitions from $(DEFS_PY))
else
$(error $(DEFS_PY) failed. aborting)
endif

#################### Cython
PYX_FILES := $(shell find . -name \*.pyx)
Expand Down
1 change: 1 addition & 0 deletions r2/Makefile.py
Original file line number Diff line number Diff line change
Expand Up @@ -41,3 +41,4 @@
print 'JS_MODULE_DEPS_%s := %s' % (name, ' '.join(module.dependencies))

print 'JS_OUTPUTS := ' + ' '.join(outputs)
print 'DEFS_SUCCESS := 1'

0 comments on commit 768663b

Please sign in to comment.