aboutsummaryrefslogblamecommitdiff
path: root/GNUmakefile
blob: 36b12d79c3da11ab44fc929be4e3bb3866dc52bb (plain) (tree)
1
2
3
4
5
6
7
8
9
10
 

                                 
 

                                                                                 
 


                      

                                               
                                                                                   
 
      
                           
 





                                                                                           
HTTP_HOST := $(shell hostname -f)
HTTP_PORT := 8000

all:
	pelican --output website --settings pelicanconf.py --fatal errors content

clean:
	git clean -dfx

server:
	@echo http://${HTTP_HOST}:${HTTP_PORT}/
	python3 -m http.server --directory website --bind ${HTTP_HOST} ${HTTP_PORT}

check:
	linkchecker website

tags: TAGS

TAGS: GNUmakefile pelicanconf.py $(shell git ls-tree -r --name-only HEAD | egrep '[.]md$$')
	etags $^

.PHONY: all clean server check tags