Gentoo Archives: gentoo-commits

From: Sergei Trofimovich <slyfox@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] proj/binutils-config:master commit in: src/, /
Date: Thu, 21 May 2020 18:15:32
Message-Id: 1590084890.1a42ffc292f575d25c6803f7adc1b6bd46b14cc2.slyfox@gentoo
1 commit: 1a42ffc292f575d25c6803f7adc1b6bd46b14cc2
2 Author: Sergei Trofimovich <slyfox <AT> gentoo <DOT> org>
3 AuthorDate: Thu May 21 18:14:50 2020 +0000
4 Commit: Sergei Trofimovich <slyfox <AT> gentoo <DOT> org>
5 CommitDate: Thu May 21 18:14:50 2020 +0000
6 URL: https://gitweb.gentoo.org/proj/binutils-config.git/commit/?id=1a42ffc2
7
8 Makefile: new trivial makefile to build tarballs and install them
9
10 Signed-off-by: Sergei Trofimovich <slyfox <AT> gentoo.org>
11
12 Makefile | 33 +++++++++++++++++++++++++++++++++
13 README.md | 2 --
14 src/binutils-config | 0
15 3 files changed, 33 insertions(+), 2 deletions(-)
16
17 diff --git a/Makefile b/Makefile
18 new file mode 100644
19 index 0000000..42dbeff
20 --- /dev/null
21 +++ b/Makefile
22 @@ -0,0 +1,33 @@
23 +EPREFIX ?=
24 +
25 +PN = binutils-config
26 +PV = git
27 +P = $(PN)-$(PV)
28 +
29 +PREFIX = $(EPREFIX)/usr
30 +BINDIR = $(PREFIX)/bin
31 +DOCDIR = $(PREFIX)/share/doc/$(P)
32 +ESELECTDIR = $(PREFIX)/share/eselect/modules
33 +MANDIR = $(PREFIX)/share/man
34 +
35 +MKDIR_P = mkdir -p -m 755
36 +INSTALL_EXE = install -m 755
37 +INSTALL_DATA = install -m 644
38 +
39 +all: # no-op
40 +
41 +install: all
42 + $(MKDIR_P) $(DESTDIR)$(BINDIR) $(DESTDIR)$(DOCDIR) $(DESTDIR)$(ESELECTDIR) $(DESTDIR)$(MANDIR)/man8
43 + $(INSTALL_EXE) src/binutils-config $(DESTDIR)$(BINDIR)
44 + $(INSTALL_DATA) README.md $(DESTDIR)$(DOCDIR)
45 + $(INSTALL_DATA) src/binutils.eselect $(DESTDIR)$(ESELECTDIR)
46 + $(INSTALL_DATA) src/binutils-config.8 $(DESTDIR)$(MANDIR)/man8
47 +
48 +dist:
49 + @if [ "$(PV)" = "git" ] ; then \
50 + printf "please run: make dist PV=xxx\n(where xxx is a git tag)\n" ; \
51 + exit 1 ; \
52 + fi
53 + git archive --prefix=$(P)/ v$(PV) | xz > $(P).tar.xz
54 +
55 +.PHONY: all clean dist install
56
57 diff --git a/README.md b/README.md
58 index 3eadab1..ec556d5 100644
59 --- a/README.md
60 +++ b/README.md
61 @@ -1,4 +1,2 @@
62 # binutils-config
63 sys-devel/binutils-config : Utility to change the binutils version being used
64 -
65 -History converted from the attic of the old Gentoo CVS repository.
66
67 diff --git a/src/binutils-config b/src/binutils-config
68 old mode 100644
69 new mode 100755