summaryrefslogtreecommitdiff
path: root/bbxm
diff options
context:
space:
mode:
authorWerner Almesberger <werner@almesberger.net>2016-10-25 23:29:03 -0300
committerWerner Almesberger <werner@almesberger.net>2016-10-25 23:29:03 -0300
commit1f72b56d81cf718cf2fd2c19d40208ce1a376c59 (patch)
tree59a72fa9cc1f25f819e6701cefbcb583137782a2 /bbxm
parent19c2736a9912bae5bf598def7397d1b1419bf1ef (diff)
downloadmisc-1f72b56d81cf718cf2fd2c19d40208ce1a376c59.tar.gz
misc-1f72b56d81cf718cf2fd2c19d40208ce1a376c59.tar.bz2
misc-1f72b56d81cf718cf2fd2c19d40208ce1a376c59.zip
bbxm/Makefile: make viewer configurable; put drill (vias / NPTH) on top
Diffstat (limited to 'bbxm')
-rw-r--r--bbxm/Makefile7
1 files changed, 5 insertions, 2 deletions
diff --git a/bbxm/Makefile b/bbxm/Makefile
index 450c28f..bf9bba5 100644
--- a/bbxm/Makefile
+++ b/bbxm/Makefile
@@ -1,3 +1,6 @@
+# VIEWER=gerbv also works, but is agonizingly slow
+VIEWER = gerbview
+
D = BB-xM_REV_C
BB_ALL = BB-xM_REV_C-2011-05-23.zip
@@ -24,8 +27,8 @@ $(DRL:%=$(D)/ncdrill-%.drl) $(GERB:%=$(D)/%.063): $(D)/$(BB_GERB)
$(D)/ncdrl%: $(D)/ncdrill%
./fixdrl $< >$@ || { rm -f $@; exit 1; }
-view: $(GERB:%=$(D)/%.063) $(DRL:%=$(D)/ncdrl-%.drl)
- gerbview $(^:%=`pwd`/%)
+view: $(DRL:%=$(D)/ncdrl-%.drl) $(GERB:%=$(D)/%.063)
+ $(VIEWER) $(^:%=`pwd`/%)
clean:
rm -rf $(D)