summaryrefslogtreecommitdiff
path: root/hw/Makefile
diff options
context:
space:
mode:
authorJoerg Reisenweber <joerg@neo900.org>2016-09-01 06:00:55 +0200
committerGenerated from internal repo <nobody@neo900.org>2016-09-01 06:00:55 +0200
commit7e11e6d24ed737f7d2c150d0ae96477d936d504a (patch)
tree4922113633054a1655a3e909ccd7ac860108bb84 /hw/Makefile
parent936e8f0bc33d0970066e32c2243e8e28b0ece66d (diff)
downloadee-7e11e6d24ed737f7d2c150d0ae96477d936d504a.tar.gz
ee-7e11e6d24ed737f7d2c150d0ae96477d936d504a.tar.bz2
ee-7e11e6d24ed737f7d2c150d0ae96477d936d504a.zip
Merge branch 'master' of neo900:ee - no idea why
Diffstat (limited to 'hw/Makefile')
-rw-r--r--hw/Makefile13
1 files changed, 11 insertions, 2 deletions
diff --git a/hw/Makefile b/hw/Makefile
index ef630eb..3cec4b4 100644
--- a/hw/Makefile
+++ b/hw/Makefile
@@ -1,12 +1,18 @@
NAME = neo900
SCHTOC = ../../misc/schtoc/schtoc.pl
-.PHONY: sch pdf
+.PHONY: sch sort brd pdf clean
sch:
[ -e kicad-libs ] || ln -s ../../../qi/kicad-libs .
eeschema $(NAME).sch
- ./sortsheets $(NAME).sch
+ perl ./sortsheets.pl -q $(NAME).sch || \
+ { echo "sheet order changed -- run \"make sort\"" 1>&2; \
+ exit 1; }
+
+sort:
+ perl ./sortsheets.pl $(NAME).sch >_tmp && \
+ mv $(NAME).sch $(NAME).bak && mv _tmp $(NAME).sch
brd:
pcbnew $(NAME).kicad_pcb
@@ -14,3 +20,6 @@ brd:
pdf:
$(SCHTOC) -n -z neo900.sch neo900.pdf >neo900-toc.pdf || \
{ rm -f neo900-toc.pdf; exit 1; }
+
+clean:
+ rm -f _tmp