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

       




                                                  
 


                                                      
 
             
              

             
           

            
 


                                                                         
      
                                              

            

                                                                              
.POSIX:

export REMOTE_HOST := root@rgoncalves.se
export REMOTE_DIR := /var/www/htdocs/rgoncalves.se
export OUTPUT_DIR := ./out
export TEMPORARY_DIR := ./tmp
export PATH := $(PATH):../ssg

export SSG_WEBSITE_DOMAIN := rgoncalves.se
export SSG_WEBSITE_TITLE := $(SSG_WEBSITE_DOMAIN)
export SSG_WEBSITE_DESCRIPTION := devops and hacker D:

.PHONY: all \
	site \
	clean

site: clean
	ssg
	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_HOST):$(REMOTE_DIR)
	ssh $(REMOTE_HOST) chown -R www:www $(REMOTE_DIR)
remember that computers suck.