-
Notifications
You must be signed in to change notification settings - Fork 3
/
Makefile
44 lines (36 loc) · 1.3 KB
/
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
44
.PHONY: build all
.SILENT:
# Define allowed packages
ALLOWED_PACKAGES := \
eth-node \
eth-node-besu \
eth-node-erigon \
eth-node-geth \
eth-node-lighthouse \
eth-node-lodestar \
eth-node-nethermind \
eth-node-nimbus-eth2 \
eth-node-prysm \
eth-node-service \
eth-node-teku
DISTRIBUTION := debian-12
ARCH := amd64
all: build
build: PACKAGE:=
build: VERSION:=
build: BUILD_SYSTEM:=v1
build:
[ -n "$(PACKAGE)" ] || (echo "Please specify a package to build" && exit 1)
[ -d "$(CURDIR)/pkg_specs/$(DISTRIBUTION)/$(PACKAGE)/$(VERSION)" ] || (echo "Directory does not exist: $(CURDIR)/pkg_specs/$(DISTRIBUTION)/$(PACKAGE)/$(VERSION)" && exit 1)
mkdir -p /tmp/pkg_specs/$(PACKAGE)_$(VERSION)
cp -r pkg_specs/$(DISTRIBUTION)/$(PACKAGE)/$(VERSION)/* /tmp/pkg_specs/$(PACKAGE)_$(VERSION)
# I have no clue why the hidden files are not copied with recursive, neither with -a option
cp -r build-systems/$(BUILD_SYSTEM)/.quiltrc-dpkg /tmp/pkg_specs/$(PACKAGE)_$(VERSION)
cp -r build-systems/$(BUILD_SYSTEM)/* /tmp/pkg_specs/$(PACKAGE)_$(VERSION)
cd /tmp/pkg_specs/$(PACKAGE)_$(VERSION) && $(MAKE) -f Makefile
available-arch:
echo "Only $(ARCH) is supported at the moment"
available-distributions:
echo "Currently only debian-12 is supported"
available-packages:
echo "Available packages are $(ALLOWED_PACKAGES)"