-
Notifications
You must be signed in to change notification settings - Fork 3
Expand file tree
/
Copy pathMakefile
More file actions
29 lines (21 loc) · 742 Bytes
/
Makefile
File metadata and controls
29 lines (21 loc) · 742 Bytes
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
VERSION=1.0
REVISION=1
UNAME=$(shell uname)
MD5SUM=md5sum
ifeq ($(UNAME), Darwin)
MD5SUM=md5 -r
endif
all: nomake
nomake:
@echo "This Makefile is only used to create release files"
firmware-target:
make -C firmware/
mv firmware/mixsid.jed ../MixSID-firmware-$(VERSION).jed
$(MD5SUM) ../MixSID-firmware-$(VERSION).jed > ../MixSID-firmware-$(VERSION).jed.md5
gerber:
make -C hardware/gerber/
mv hardware/gerber/mixsid.zip ../MixSID-r$(REVISION)-gerber.zip
$(MD5SUM) ../MixSID-r$(REVISION)-gerber.zip > ../MixSID-r$(REVISION)-gerber.zip.md5
release: firmware-target gerber
git archive --prefix=MixSID-$(VERSION)/ -o ../MixSID-$(VERSION).tar.gz HEAD && \
$(MD5SUM) ../MixSID-$(VERSION).tar.gz > ../MixSID-$(VERSION).tar.gz.md5