diff options
author | Piotr Esden-Tempski <piotr@esden.net> | 2015-12-30 12:40:20 +0100 |
---|---|---|
committer | Piotr Esden-Tempski <piotr@esden.net> | 2015-12-30 12:40:20 +0100 |
commit | 3975b0abbcde3500efd54b153d1211833c608d75 (patch) | |
tree | 49bdf9ef169ada33efc78d767b7383ec726471a6 | |
parent | 3ea5dbeb5c4a5ddb9969ecf067972735a5973919 (diff) | |
download | icestorm-3975b0abbcde3500efd54b153d1211833c608d75.tar.gz icestorm-3975b0abbcde3500efd54b153d1211833c608d75.tar.bz2 icestorm-3975b0abbcde3500efd54b153d1211833c608d75.zip |
[examples] Added sudo prog target to prevent compiling the code as root. And made make clean more conservative.
-rw-r--r-- | examples/hx8kboard/Makefile | 6 | ||||
-rw-r--r-- | examples/icestick/Makefile | 6 |
2 files changed, 10 insertions, 2 deletions
diff --git a/examples/hx8kboard/Makefile b/examples/hx8kboard/Makefile index bc47cf6..e9fd789 100644 --- a/examples/hx8kboard/Makefile +++ b/examples/hx8kboard/Makefile @@ -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 diff --git a/examples/icestick/Makefile b/examples/icestick/Makefile index a9b1d8b..eaed6f7 100644 --- a/examples/icestick/Makefile +++ b/examples/icestick/Makefile @@ -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 |