mirror of
				https://gitlab.com/ytdl-org/youtube-dl.git
				synced 2025-11-04 06:37:07 -05:00 
			
		
		
		
	only install to /etc if PREFIX is /usr or /usr/local
This commit is contained in:
		
							
								
								
									
										12
									
								
								Makefile
									
									
									
									
									
								
							
							
						
						
									
										12
									
								
								Makefile
									
									
									
									
									
								
							@@ -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)
 | 
			
		||||
 
 | 
			
		||||
		Reference in New Issue
	
	Block a user