aboutsummaryrefslogblamecommitdiffstats
path: root/Makefile
blob: 76261af8203eb26dbbc15b65255c8302f77349ab (plain) (tree)
1
2
3
4
5
6
7
8
9

       

                                           

                      

             
              

             
           
                 
                  
 


                                                                         
      
                                              

            
                                                                         
                                                    
.POSIX:

REMOTE := root@dc0
REMOTE_DIR := /var/www/htdocs/rgoncalves.se
OUTPUT_DIR := ./out
TEMPORARY_DIR := ./tmp

.PHONY: all \
	site \
	clean

site: clean
	./bin/ssg
	./bin/rssg

preview: site
	python3 -m http.server --directory $(OUTPUT_DIR) --bind 127.0.0.1

clean:
	- rm -r $(OUTPUT_DIR) $(TEMPORARY_DIR)

deploy: site
	rsync -e ssh -avz --delete $(OUTPUT_DIR)/ $(REMOTE):$(REMOTE_DIR)
	ssh $(REMOTE) chown -R www:www $(REMOTE_DIR)
remember that computers suck.