Use coreutils' install command, support DESTDIR
This commit is contained in:
		
							parent
							
								
									f527bc5d45
								
							
						
					
					
						commit
						51c760eef7
					
				
					 5 changed files with 11 additions and 4 deletions
				
			
		| 
						 | 
				
			
			@ -5,6 +5,7 @@ INCLUDES =
 | 
			
		|||
DEBUG = 4
 | 
			
		||||
OPTIMIZE = -g
 | 
			
		||||
CCFLAGS = -Wall -Wextra -funsigned-char $(OPTIMIZE) -DDEBUG=$(DEBUG)
 | 
			
		||||
INSTALL = install
 | 
			
		||||
CC = $(CROSS)g++
 | 
			
		||||
LD = $(CROSS)ld
 | 
			
		||||
AR = $(CROSS)ar
 | 
			
		||||
| 
						 | 
				
			
			@ -19,5 +20,5 @@ $(OUT): $(OBJ)
 | 
			
		|||
clean:
 | 
			
		||||
	rm -rf $(OBJ) $(OUT) Makefile.bak *~
 | 
			
		||||
install: $(OUT)
 | 
			
		||||
	cp -f ./$(OUT) /usr/bin/
 | 
			
		||||
	$(INSTALL) -D ./$(OUT) $(DESTDIR)/usr/bin/$(OUT)
 | 
			
		||||
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue