diff options
author | Martin Gysel <me@bearsh.org> | 2011-10-17 15:53:59 +0200 |
---|---|---|
committer | Linus Torvalds <torvalds@linux-foundation.org> | 2011-10-17 10:48:40 -0700 |
commit | e9386057b6a4cddb09ac3391634ccbbe6cdb39ef (patch) | |
tree | c74fda415b21e3f8c68a6cb2563cddb482a27978 /Makefile | |
parent | f2c61aefa762ce2ef7dea61886afeb23b0fe5eff (diff) | |
download | subsurface-e9386057b6a4cddb09ac3391634ccbbe6cdb39ef.tar.gz |
use DESTDIR according to my understanding of GNU standards
make DESRDIR a prefix of everything according my understanding
of the GNU standards. This is also useful(/needed) for installing
in Gentoo. Declare BINDIR for bin/program directory.
Signed-off-by: Martin Gysel <me@bearsh.org>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
Diffstat (limited to 'Makefile')
-rw-r--r-- | Makefile | 8 |
1 files changed, 4 insertions, 4 deletions
@@ -6,8 +6,8 @@ INSTALL=install # these locations seem to work for SuSE and Fedora # prefix = $(HOME) -prefix = /usr -DESTDIR = $(prefix)/bin +prefix = $(DESTDIR)/usr +BINDIR = $(prefix)/bin DATADIR = $(prefix)/share DESKTOPDIR = $(DATADIR)/applications ICONPATH = $(DATADIR)/icons/hicolor @@ -59,8 +59,8 @@ $(NAME): $(OBJS) $(CC) $(LDFLAGS) -o $(NAME) $(OBJS) $(LIBS) install: $(NAME) - $(INSTALL) -d -m 755 $(DESTDIR) - $(INSTALL) $(NAME) $(DESTDIR) + $(INSTALL) -d -m 755 $(BINDIR) + $(INSTALL) $(NAME) $(BINDIR) $(INSTALL) -d -m 755 $(DESKTOPDIR) $(INSTALL) $(DESKTOPFILE) $(DESKTOPDIR) $(INSTALL) -d -m 755 $(ICONDIR) |