A feature-rich command-line audio/video downloader
only install to /etc if PREFIX is /usr or /usr/local
chocolateboy5738240ee829
diff --git a/Makefile b/Makefileindex 84ea70d2c4..e00f5e6503 100644--- a/Makefile+++ b/Makefile@@ -9,9 +9,19 @@ cleanall: cleanPREFIX=/usr/localBINDIR=$(PREFIX)/binMANDIR=$(PREFIX)/man-SYSCONFDIR=/etcPYTHON=/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-completioninstall -d $(DESTDIR)$(BINDIR)install -m 755 youtube-dl $(DESTDIR)$(BINDIR)