-
Notifications
You must be signed in to change notification settings - Fork 3
/
Makefile
43 lines (32 loc) · 846 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
30
31
32
33
34
35
36
37
38
39
40
41
42
43
REPO=dok3r
NAME=ulx3s-saxonsoc
IMAGE=$(REPO)/$(NAME)
OSTYPE=$(shell uname -s | tr '[A-Z]' '[a-z]')
MACHINE=$(shell uname -m)
ARCH=$(OSTYPE)-$(MACHINE)
VERSION=$(shell date '+%Y.%m.%d')
DIST_OUT=dist/
ver:
echo $(IMAGE) version $(VERSION)
build:
docker build -t $(IMAGE):v$(VERSION) .
bins:
./wrap.sh -e FPGA_SIZE="12 25 45 85" -e SDRAM_SIZE=32 -e DIST_OUT=/dist/saxon-32-$(VERSION)
bins64:
./wrap.sh -e FPGA_SIZE="85" -e SDRAM_SIZE=64 -e SDRAM_TIMING=AS4C32M16SB_7TCN_ps -e DIST_OUT=/dist/saxon-64-$(VERSION)
push:
docker push $(IMAGE):v$(VERSION)
pull:
docker pull $(IMAGE):v$(VERSION)
latest:
docker tag $(IMAGE):v$(VERSION) $(IMAGE):latest
docker push $(IMAGE):latest
gittag:
git tag v$(VERSION)
git push --tags origin master
clean:
rm -rf dist work
rel:
ghr v$(VERSION) $(DIST_OUT)
draft:
ghr -draft v$(VERSION) dist/