aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--Makefile8
1 files changed, 4 insertions, 4 deletions
diff --git a/Makefile b/Makefile
index edd88cb68..3e0d8b199 100644
--- a/Makefile
+++ b/Makefile
@@ -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)