Skip to content

Commit

Permalink
Check variable before making any deletions
Browse files Browse the repository at this point in the history
Before issuing 'rm -f $(var)', first check if 'var' is defined.
  • Loading branch information
dnsmkl committed Oct 9, 2016
1 parent 3d21767 commit 430cfe7
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion makefile
Original file line number Diff line number Diff line change
Expand Up @@ -233,10 +233,12 @@ ifdef EXEC_CLI
endif
ifdef EXEC_GUI
rm -vf $(PREFIX)/bin/$(EXEC_GUI)
endif
ifdef LIBNAME
rm -vf $(PREFIX)/lib/$(LIBNAME)
endif
rm -vf $(PREFIX)/share/fsqlf/formatting.conf.example
rm -vfd $(PREFIX)/share/fsqlf
rm -vf $(PREFIX)/lib/$(LIBNAME)
endif


Expand Down

0 comments on commit 430cfe7

Please sign in to comment.