This makes it a hell of a lot simpler but will lose support for BSD make. All effected machines are running gnu-make, so the cost benefit ratio ways heavily in favor of doing this.
		
			
				
	
	
		
			18 lines
		
	
	
		
			334 B
		
	
	
	
		
			Makefile
		
	
	
	
	
	
			
		
		
	
	
			18 lines
		
	
	
		
			334 B
		
	
	
	
		
			Makefile
		
	
	
	
	
	
SRC_DIR := $(shell dirname $(realpath $(lastword $(MAKEFILE_LIST))))
 | 
						|
SOURCE :=  $(SRC_DIR)/gitconfig
 | 
						|
TARGET :=  ~/.gitconfig
 | 
						|
 | 
						|
include ../lib/shared.mk
 | 
						|
 | 
						|
install: | init update
 | 
						|
 | 
						|
init:
 | 
						|
	$(report) header "Setting up gitconfig"
 | 
						|
	$(mk_link) $(SOURCE) $(TARGET)
 | 
						|
 | 
						|
update:
 | 
						|
 | 
						|
remove:
 | 
						|
	$(report) header "Removing gitconfig"
 | 
						|
	$(rm_link) $(TARGET)
 |