Skip to content

Commit

Permalink
posix.mak: Add DELETE_ON_ERROR
Browse files Browse the repository at this point in the history
Delete output files if the command fails.
  • Loading branch information
CyberShadow committed May 30, 2015
1 parent 7dd1d17 commit 564361f
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 0 deletions.
2 changes: 2 additions & 0 deletions posix.mak
Original file line number Diff line number Diff line change
Expand Up @@ -25,3 +25,5 @@ install: all
cp -r samples $(INSTALL_DIR)
mkdir -p $(INSTALL_DIR)/man
cp -r docs/man/* $(INSTALL_DIR)/man/

.DELETE_ON_ERROR: # GNU Make directive (delete output files on error)
4 changes: 4 additions & 0 deletions src/posix.mak
Original file line number Diff line number Diff line change
Expand Up @@ -582,3 +582,7 @@ DSRC= $(GENSRC) $(MANUALSRC)

ddmd: mars.d $(MANUALSRC) newdelete.o glue.a backend.a $(HOST_DC)
CC=$(HOST_CC) $(HOST_DC_RUN) $(MODEL_FLAG) $(DSRC) -ofddmd newdelete.o glue.a backend.a -vtls -J.. -d $(DFLAGS)

#############################

.DELETE_ON_ERROR: # GNU Make directive (delete output files on error)

0 comments on commit 564361f

Please sign in to comment.