aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSergei Trofimovich <slyfox@gentoo.org>2020-05-21 19:14:50 +0100
committerSergei Trofimovich <slyfox@gentoo.org>2020-05-21 19:14:50 +0100
commit1a42ffc292f575d25c6803f7adc1b6bd46b14cc2 (patch)
tree987ad8b7dedc75fbaaec8cf0c7ed7badb0fbd6dd
parentadd binutils-config sources as-is (diff)
downloadbinutils-config-1a42ffc292f575d25c6803f7adc1b6bd46b14cc2.tar.gz
binutils-config-1a42ffc292f575d25c6803f7adc1b6bd46b14cc2.tar.bz2
binutils-config-1a42ffc292f575d25c6803f7adc1b6bd46b14cc2.zip
Makefile: new trivial makefile to build tarballs and install themv5.2.1
Signed-off-by: Sergei Trofimovich <slyfox@gentoo.org>
-rw-r--r--Makefile33
-rw-r--r--README.md2
-rwxr-xr-x[-rw-r--r--]src/binutils-config0
3 files changed, 33 insertions, 2 deletions
diff --git a/Makefile b/Makefile
new file mode 100644
index 0000000..42dbeff
--- /dev/null
+++ b/Makefile
@@ -0,0 +1,33 @@
+EPREFIX ?=
+
+PN = binutils-config
+PV = git
+P = $(PN)-$(PV)
+
+PREFIX = $(EPREFIX)/usr
+BINDIR = $(PREFIX)/bin
+DOCDIR = $(PREFIX)/share/doc/$(P)
+ESELECTDIR = $(PREFIX)/share/eselect/modules
+MANDIR = $(PREFIX)/share/man
+
+MKDIR_P = mkdir -p -m 755
+INSTALL_EXE = install -m 755
+INSTALL_DATA = install -m 644
+
+all: # no-op
+
+install: all
+ $(MKDIR_P) $(DESTDIR)$(BINDIR) $(DESTDIR)$(DOCDIR) $(DESTDIR)$(ESELECTDIR) $(DESTDIR)$(MANDIR)/man8
+ $(INSTALL_EXE) src/binutils-config $(DESTDIR)$(BINDIR)
+ $(INSTALL_DATA) README.md $(DESTDIR)$(DOCDIR)
+ $(INSTALL_DATA) src/binutils.eselect $(DESTDIR)$(ESELECTDIR)
+ $(INSTALL_DATA) src/binutils-config.8 $(DESTDIR)$(MANDIR)/man8
+
+dist:
+ @if [ "$(PV)" = "git" ] ; then \
+ printf "please run: make dist PV=xxx\n(where xxx is a git tag)\n" ; \
+ exit 1 ; \
+ fi
+ git archive --prefix=$(P)/ v$(PV) | xz > $(P).tar.xz
+
+.PHONY: all clean dist install
diff --git a/README.md b/README.md
index 3eadab1..ec556d5 100644
--- a/README.md
+++ b/README.md
@@ -1,4 +1,2 @@
# binutils-config
sys-devel/binutils-config : Utility to change the binutils version being used
-
-History converted from the attic of the old Gentoo CVS repository.
diff --git a/src/binutils-config b/src/binutils-config
index 69ca530..69ca530 100644..100755
--- a/src/binutils-config
+++ b/src/binutils-config