-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathMakefile
29 lines (25 loc) · 910 Bytes
/
Makefile
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
NAME=batty
GERBER_DIR=./gerber
ARCHIVE_DIR=./${NAME}
.PHONY: clean
clean:
rm -rf ${ARCHIVE_DIR}
rm -f ${NAME}.zip
.PHONY: copy-gerber
copy-gerber: clean
mkdir ${ARCHIVE_DIR}
cp ${GERBER_DIR}/${NAME}-F.CU.gbr ${ARCHIVE_DIR}/${NAME}.GTL
cp ${GERBER_DIR}/${NAME}-B.CU.gbr ${ARCHIVE_DIR}/${NAME}.GBL
cp ${GERBER_DIR}/${NAME}-F.Mask.gbr ${ARCHIVE_DIR}/${NAME}.GTS
cp ${GERBER_DIR}/${NAME}-B.Mask.gbr ${ARCHIVE_DIR}/${NAME}.GBS
cp ${GERBER_DIR}/${NAME}-F.SilkS.gbr ${ARCHIVE_DIR}/${NAME}.GTO
cp ${GERBER_DIR}/${NAME}-B.SilkS.gbr ${ARCHIVE_DIR}/${NAME}.GBO
cp ${GERBER_DIR}/${NAME}-PTH.drl ${ARCHIVE_DIR}/${NAME}.TXT
cp ${GERBER_DIR}/${NAME}-NPTH.drl ${ARCHIVE_DIR}/${NAME}-NPTH.TXT
cp ${GERBER_DIR}/${NAME}-Edge.Cuts.gbr ${ARCHIVE_DIR}/${NAME}.GML
.PHONY: archive
archive: copy-gerber
zip -r ${NAME}.zip ${ARCHIVE_DIR}
@echo "Created ${NAME}.zip"
.PHONY: release
release: clean copy-gerber archive