aboutsummaryrefslogtreecommitdiffstats
path: root/examples
diff options
context:
space:
mode:
authorPiotr Esden-Tempski <piotr@esden.net>2015-12-30 12:40:20 +0100
committerPiotr Esden-Tempski <piotr@esden.net>2015-12-30 12:40:20 +0100
commit3975b0abbcde3500efd54b153d1211833c608d75 (patch)
tree49bdf9ef169ada33efc78d767b7383ec726471a6 /examples
parent3ea5dbeb5c4a5ddb9969ecf067972735a5973919 (diff)
downloadicestorm-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.
Diffstat (limited to 'examples')
-rw-r--r--examples/hx8kboard/Makefile6
-rw-r--r--examples/icestick/Makefile6
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