pass ERC on sonar connectors, after save
[challenge-bot] / pcb / Makefile
CommitLineData
468dbff9
WG
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:
6BASE := busduino
7
8# Root directory:
9ROOT_DIR := ../../..
10
11# The library driectory from $(ROOT_DIR):
12LIBRARY_DIR := robus
13LIBRARY_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):
21BASE_DIR := $(LIBRARY_DIR)/$(BASE)/rev_b
22BASE_PREFIX := $(BASE_DIR)/$(BASE)
23BASE_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
34ARCHIVE_FILES := \
35 ${LIBRARY_MODULE_FILES} \
36 ${BASE_FILES}
37
38ZIP_FILES := \
39 $(BASE_PREFIX).zip
40
41ARDUINO_DIR := $(ROOT_DIR)/arduino/arduino-1.0.1
42BOOTLOADER_DIR := $(ARDUINO_DIR)/hardware/MDuino/bootloaders/optiboot
43BOOTLOADER_FILES := \
44 optiboot.c \
45 avrdude_interactive.sh \
46 burn_flash.sh \
47 burn_fuses.sh \
48 Makefile
49
50
51
52all: ${ZIP_FILES}
53
54$(BASE_PREFIX).zip:
55 cd $(ROOT_DIR) ; zip $@ ${ARCHIVE_FILES}
56
57bootloader.zip:
58 rm -f $@
59 cp