summaryrefslogtreecommitdiff
path: root/hw/Makefile
diff options
context:
space:
mode:
authorWerner Almesberger <werner@almesberger.net>2016-11-14 10:37:14 -0300
committerGenerated from internal repo <nobody@neo900.org>2016-11-14 10:37:14 -0300
commit1aa48cac99968953340dff07edeca78e65ef1cb8 (patch)
tree02a95219fd671f820cd115daaaabeca10d4cbda8 /hw/Makefile
parent94b844024f0d02a5b2ab1f6f834714772ff7fce6 (diff)
downloadee-1aa48cac99968953340dff07edeca78e65ef1cb8.tar.gz
ee-1aa48cac99968953340dff07edeca78e65ef1cb8.tar.bz2
ee-1aa48cac99968953340dff07edeca78e65ef1cb8.zip
hw/Makefile (REVCOUNT): make make variable, not shell variable
This allows also make view REVCOUNT=nnn and make REVCOUNT=nnn view to work, not just REVCOUNT=nnn make view
Diffstat (limited to 'hw/Makefile')
-rw-r--r--hw/Makefile3
1 files changed, 2 insertions, 1 deletions
diff --git a/hw/Makefile b/hw/Makefile
index 242963c..8005d02 100644
--- a/hw/Makefile
+++ b/hw/Makefile
@@ -45,12 +45,13 @@ pdf:
#----- Documentation ----------------------------------------------------------
+REVCOUNT ?= 30
SHEETS = $(shell sed 's/^F1 "\([^"]*\)".*/\1/p;d' neo900.sch)
view: docdb.out
EESHOW_VIEWER=eeshow-viewer \
EESHOW_PDF_VIEWER=$${EESHOW_PDF_VIEWER:-xpdf} \
- eeshow -N $${REVCOUNT:-30} -d docdb.out neo900.pro
+ eeshow -N $(REVCOUNT) -d docdb.out neo900.pro
docdb.out: docdb.in $(SHEETS)
./gendocdb.pl -c -i $^ >$@ || { rm -f $@; exit 1; }