define wiring in separate file
[challenge-bot] / pcb / Makefile
1 # zip together files starting with robus as the root. This
2 # allows the search path inside of KiCAD to find all the
3 # appropriate .mod and .lib files:
4
5 # The project base:
6 BASE := busduino
7
8 # Root directory:
9 ROOT_DIR := ../../..
10
11 # The library driectory from $(ROOT_DIR):
12 LIBRARY_DIR := robus
13 LIBRARY_MODULE_FILES := \
14 $(LIBRARY_DIR)/extra-nominal.mod \
15 $(LIBRARY_DIR)/IPC7351-Nominal.mod \
16 $(LIBRARY_DIR)/robus.mod \
17 $(LIBRARY_DIR)/ipc7351_extra.mod \
18 $(LIBRARY_DIR)/robus.lib
19
20 # The base directory from $(ROOT_DIR):
21 BASE_DIR := $(LIBRARY_DIR)/$(BASE)/rev_b
22 BASE_PREFIX := $(BASE_DIR)/$(BASE)
23 BASE_FILES := \
24 $(BASE_PREFIX).brd \
25 $(BASE_PREFIX)-cache.lib \
26 $(BASE_PREFIX).cmp \
27 $(BASE_PREFIX).net \
28 $(BASE_PREFIX).pdf \
29 $(BASE_PREFIX).pro \
30 $(BASE_PREFIX).sch \
31 $(BASE_PREFIX)$$savepcb.brd \
32 $(BASE_DIR)/notes.txt
33
34 ARCHIVE_FILES := \
35 ${LIBRARY_MODULE_FILES} \
36 ${BASE_FILES}
37
38 ZIP_FILES := \
39 $(BASE_PREFIX).zip
40
41 ARDUINO_DIR := $(ROOT_DIR)/arduino/arduino-1.0.1
42
43 all: ${ZIP_FILES}
44
45 $(BASE_PREFIX).zip:
46 cd $(ROOT_DIR) ; zip $@ ${ARCHIVE_FILES}
47
48 seeedstudio:
49 cp mbino-Edge_Cuts.gbr mbino-Edge_Cuts.gml
50 cp mbino.drl mbino.txt
51 zip mbino.zip -r9 mbino-B_Cu.gbl mbino-B_SilkS.gbo mbino-F_Cu.gtl \
52 mbino-F_Paste.gtp mbino-B_Mask.gbs mbino-Edge_Cuts.gml \
53 mbino-F_Mask.gts mbino-F_SilkS.gto mbino.txt