From 6bc0923556caf861124a0768ff9bc0d84e57e7f0 Mon Sep 17 00:00:00 2001 From: Lephenixnoir Date: Sat, 2 Jan 2021 10:38:07 +0100 Subject: [PATCH] manual build and README --- .gitignore | 1 + README.md | 13 +++++++++++++ giteapc.make | 7 ++++--- 3 files changed, 18 insertions(+), 3 deletions(-) create mode 100644 README.md diff --git a/.gitignore b/.gitignore index 6315628..23f45e2 100644 --- a/.gitignore +++ b/.gitignore @@ -7,3 +7,4 @@ !uninstall.sh !util.sh !.gitignore +!README.md diff --git a/README.md b/README.md new file mode 100644 index 0000000..105340c --- /dev/null +++ b/README.md @@ -0,0 +1,13 @@ +# Automatic `sh-elf-binutils` installer + +This script can be used to automatically compile and install an SH3/SH4 binutils suite. The normal use is with GiteaPC: + +``` +% giteapc install Lephenixnoir/sh-elf-binutils +``` + +You can also install binutils manually by running the GiteaPC Makefile with a manually-specified install prefix: + +``` +% make -f giteapc.make configure build install PREFIX=$HOME/.local +``` diff --git a/giteapc.make b/giteapc.make index 6292a0b..db0a56c 100644 --- a/giteapc.make +++ b/giteapc.make @@ -1,6 +1,7 @@ # giteapc: version=1 -VERSION=2.35.1 +PREFIX ?= $(GITEAPC_PREFIX) +VERSION = 2.35.1 configure: @ ./configure.sh $(VERSION) @@ -9,9 +10,9 @@ build: @ ./build.sh install: - @ ./install.sh "$(GITEAPC_PREFIX)" + @ ./install.sh "$(PREFIX)" uninstall: - @ ./uninstall.sh "$(GITEAPC_PREFIX)" + @ ./uninstall.sh "$(PREFIX)" .PHONY: configure build install uninstall