Gentoo Archives: gentoo-commits

From: "Mike Frysinger (vapier)" <vapier@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] gentoo-projects commit in pax-utils: Makefile
Date: Sat, 04 Feb 2012 18:14:27
Message-Id: 20120204181418.482BF2004B@flycatcher.gentoo.org
1 vapier 12/02/04 18:14:18
2
3 Modified: Makefile
4 Log:
5 allow people to control install paths via `make`
6
7 Revision Changes Path
8 1.78 pax-utils/Makefile
9
10 file : http://sources.gentoo.org/viewvc.cgi/gentoo-projects/pax-utils/Makefile?rev=1.78&view=markup
11 plain: http://sources.gentoo.org/viewvc.cgi/gentoo-projects/pax-utils/Makefile?rev=1.78&content-type=text/plain
12 diff : http://sources.gentoo.org/viewvc.cgi/gentoo-projects/pax-utils/Makefile?r1=1.77&r2=1.78
13
14 Index: Makefile
15 ===================================================================
16 RCS file: /var/cvsroot/gentoo-projects/pax-utils/Makefile,v
17 retrieving revision 1.77
18 retrieving revision 1.78
19 diff -u -r1.77 -r1.78
20 --- Makefile 23 Jan 2012 23:47:14 -0000 1.77
21 +++ Makefile 4 Feb 2012 18:14:18 -0000 1.78
22 @@ -1,6 +1,6 @@
23 # Copyright 2003-2006 Ned Ludd <solar@××××××.net>
24 # Distributed under the terms of the GNU General Public License v2
25 -# $Header: /var/cvsroot/gentoo-projects/pax-utils/Makefile,v 1.77 2012/01/23 23:47:14 vapier Exp $
26 +# $Header: /var/cvsroot/gentoo-projects/pax-utils/Makefile,v 1.78 2012/02/04 18:14:18 vapier Exp $
27 ####################################################################
28
29 check_gcc=$(shell if $(CC) $(1) -S -o /dev/null -xc /dev/null > /dev/null 2>&1; \
30 @@ -24,7 +24,11 @@
31 LDFLAGS +=
32 LIBS :=
33 DESTDIR =
34 -PREFIX := $(DESTDIR)/usr
35 +PREFIX = $(DESTDIR)/usr
36 +DATADIR = $(PREFIX)/share
37 +MANDIR = $(DATADIR)/man
38 +DOCDIR = $(DATADIR)/doc
39 +PKGDOCDIR = $(DOCDIR)/pax-utils
40 STRIP := strip
41 MKDIR := mkdir -p
42 CP := cp
43 @@ -100,15 +104,15 @@
44 $(STRIP) --strip-unneeded $(TARGETS)
45
46 install: all
47 - $(MKDIR) $(PREFIX)/bin/ $(PREFIX)/share/man/man1/
48 + $(MKDIR) $(PREFIX)/bin/ $(MANDIR)/man1/
49 for sh in *.sh ; do $(INS_EXE) $$sh $(PREFIX)/bin/$${sh%.sh} || exit $$? ; done
50 $(INS_EXE) $(TARGETS) $(PREFIX)/bin/
51 ifeq ($(S),)
52 - $(MKDIR) $(PREFIX)/share/doc/pax-utils/
53 - $(CP) README BUGS TODO $(PREFIX)/share/doc/pax-utils/
54 - -$(INS_DATA) $(MPAGES) $(PREFIX)/share/man/man1/
55 + $(MKDIR) $(PKGDOCDIR)/
56 + $(CP) README BUGS TODO $(PKGDOCDIR)/
57 + -$(INS_DATA) $(MPAGES) $(MANDIR)/man1/
58 else
59 - $(INS_DATA) $(MPAGES) $(PREFIX)/share/man/man1/
60 + $(INS_DATA) $(MPAGES) $(MANDIR)/man1/
61 endif
62
63 dist: