mirror of
				https://github.com/koalaman/shellcheck.git
				synced 2025-11-04 18:28:23 +08:00 
			
		
		
		
	
		
			
				
	
	
		
			25 lines
		
	
	
		
			455 B
		
	
	
	
		
			Makefile
		
	
	
	
	
	
			
		
		
	
	
			25 lines
		
	
	
		
			455 B
		
	
	
	
		
			Makefile
		
	
	
	
	
	
# TODO: Phase out Makefile in favor of Cabal
 | 
						|
 | 
						|
GHCFLAGS=-O9
 | 
						|
 | 
						|
all: shellcheck .tests shellcheck.1
 | 
						|
	: Done
 | 
						|
	
 | 
						|
shellcheck: regardless
 | 
						|
	: Conditionally compiling shellcheck
 | 
						|
	ghc $(GHCFLAGS) --make shellcheck
 | 
						|
 | 
						|
.tests: *.hs */*.hs
 | 
						|
	: Running unit tests
 | 
						|
	./test/runQuack && touch .tests
 | 
						|
 | 
						|
shellcheck.1: shellcheck.1.md
 | 
						|
	pandoc -s -t man $< -o $@
 | 
						|
 | 
						|
clean:
 | 
						|
	rm -f .tests shellcheck shellcheck.1
 | 
						|
	rm -f *.hi *.o ShellCheck/*.hi ShellCheck/*.o
 | 
						|
	rm -rf dist
 | 
						|
 | 
						|
regardless:
 |