From d16d2927ae2d091037804117fd985a22ee6c1400 Mon Sep 17 00:00:00 2001 From: Richard Watts Date: Wed, 26 Jun 2024 17:28:40 +0100 Subject: [PATCH] (feat) install-from-apt --- Makefile | 14 +++++++++++++- 1 file changed, 13 insertions(+), 1 deletion(-) diff --git a/Makefile b/Makefile index fb867a46a..7a848f8f9 100644 --- a/Makefile +++ b/Makefile @@ -28,10 +28,22 @@ define patch_rpath find _build/default/$(1) -type f -name '*.exe' -exec chmod u+w \{} \; -exec $(RPATH_CMD) "$(VCPKG_BASE)/lib" \{} \; -exec chmod u+w \{} \; endef -.PHONY: default release utop dev clean docker zilliqa-docker +.PHONY: default release utop dev clean docker zilliqa-docker install-from-apt default: release +APT_REQUIREMENTS= autoconf bison build-essential ca-certificates ccache cmake cron curl dnsutils gawk \ + git lcov libcurl4-openssl-dev libev-dev libgmp-dev libpcre3-dev libssl-dev libtool \ + libxml2-utils ninja-build nload ocaml ocl-icd-opencl-dev opam openssh-client patchelf pkg-config \ + rsync rsyslog tar unzip vim wget zip zlib1g-dev + +install-from-apt: + apt-get update -y + apt-get install -y software-properties-common + apt-get update + apt-get install -y --no-install-recommends $(APT_REQUIREMENTS) + + # Build one library and one standalone executable that implements # multiple subcommands and uses the library. # The library can be loaded in utop for interactive testing.