[examples] Added sudo prog target to prevent compiling the code as root. And made make clean more conservative.

This commit is contained in:
Piotr Esden-Tempski 2015-12-30 12:40:20 +01:00
parent 3ea5dbeb5c
commit 3975b0abbc
2 changed files with 10 additions and 2 deletions

View File

@ -16,7 +16,11 @@ all: $(PROJ).bin
prog: $(PROJ).bin
iceprog $<
sudo-prog: $(PROJ).bin
@echo 'Executing prog as root!!!'
sudo iceprog $<
clean:
rm -f *.blif *.txt *.bin
rm -f $(PROJ).blif $(PROJ).txt $(PROJ).bin
.PHONY: all prog clean

View File

@ -16,7 +16,11 @@ all: $(PROJ).bin
prog: $(PROJ).bin
iceprog $<
sudo-prog: $(PROJ).bin
@echo 'Executing prog as root!!!'
iceprog $<
clean:
rm -f *.blif *.txt *.bin
rm -f $(PROJ).blif $(PROJ).txt $(PROJ).bin
.PHONY: all prog clean