forked from website/openpower.foundation
				
			
			You cannot select more than 25 topics
			Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
		
		
		
		
		
			
		
			
				
	
	
		
			38 lines
		
	
	
		
			947 B
		
	
	
	
		
			Makefile
		
	
			
		
		
	
	
			38 lines
		
	
	
		
			947 B
		
	
	
	
		
			Makefile
		
	
#!Makefile
 | 
						|
 | 
						|
HUGO=hugo-extended
 | 
						|
 | 
						|
default all: build
 | 
						|
 | 
						|
.PHONY: build
 | 
						|
build: clean
 | 
						|
	$(HUGO) --environment=production --minify --templateMetrics
 | 
						|
	@find public/ -name '*.html' ! -name '*.gz' -type f -exec sh -c "gzip -c -9 < {} > {}.gz" \;
 | 
						|
	@find public/ -name '*.css' ! -name '*.gz' -type f -exec sh -c "gzip -c -9 < {} > {}.gz" \;
 | 
						|
	@find public/ -name '*.js' ! -name '*.gz' -type f -exec sh -c "gzip -c -9 < {} > {}.gz" \;
 | 
						|
 | 
						|
.PHONY: test
 | 
						|
test: clean
 | 
						|
	$(HUGO) --environment=development --minify
 | 
						|
 | 
						|
.PHONY: draft
 | 
						|
draft:
 | 
						|
	$(HUGO) --environment=development --minify --buildDrafts --buildFuture --buildExpired
 | 
						|
 | 
						|
.PHONY: debug
 | 
						|
debug:
 | 
						|
	$(HUGO) --debug
 | 
						|
 | 
						|
.PHONY: serve
 | 
						|
serve:
 | 
						|
	$(HUGO) server --environment=development --noHTTPCache --disableFastRender --watch
 | 
						|
 | 
						|
.PHONY: servedraft
 | 
						|
servedraft:
 | 
						|
	$(HUGO) server --environment=development --buildFuture --buildExpired --noHTTPCache --disableFastRender --watch
 | 
						|
 | 
						|
.PHONY: clean
 | 
						|
clean:
 | 
						|
	@rm -rf public/
 | 
						|
	@rm -rf resources/
 |