diff options
author | Philipp Hagemeister <phihag@phihag.de> | 2013-05-13 00:42:24 -0700 |
---|---|---|
committer | Philipp Hagemeister <phihag@phihag.de> | 2013-05-13 00:42:24 -0700 |
commit | c1d58e1c67106e2f65fdd38fc4db99af19a647ce (patch) | |
tree | a07d1da78c01e38c33d80e982619ff19d62ccb83 | |
parent | 02030ff7fe47a0f1e6a75a50a2d76b3154545dc2 (diff) | |
parent | 5738240ee829684815bdb9e6a9028d3465140b48 (diff) |
Merge pull request #834 from chocolateboy/install_prefix_fix
only install to /etc if PREFIX is /usr or /usr/local
-rw-r--r-- | Makefile | 12 |
1 files changed, 11 insertions, 1 deletions
@@ -9,9 +9,19 @@ cleanall: clean PREFIX=/usr/local BINDIR=$(PREFIX)/bin MANDIR=$(PREFIX)/man -SYSCONFDIR=/etc PYTHON=/usr/bin/env python +# set SYSCONFDIR to /etc if PREFIX=/usr or PREFIX=/usr/local +ifeq ($(PREFIX),/usr) + SYSCONFDIR=/etc +else + ifeq ($(PREFIX),/usr/local) + SYSCONFDIR=/etc + else + SYSCONFDIR=$(PREFIX)/etc + endif +endif + install: youtube-dl youtube-dl.1 youtube-dl.bash-completion install -d $(DESTDIR)$(BINDIR) install -m 755 youtube-dl $(DESTDIR)$(BINDIR) |