e1e0.net

sources for e1e0 website
git clone https://git.e1e0.net/e1e0.net.git
Log | Files | Refs

Makefile (693B)


      1 TITLE="e1e0.net"
      2 BASE_URL="https://e1e0.net"
      3 SRC_DIR=src
      4 DST_DIR=htmlOut
      5 HTTP_SERVER="w1.e1e0.net:/var/www/htdocs/e1e0.net"
      6 GOPHER_DIR=gopherOut
      7 GOPHER_SERVER="w1.e1e0.net:/var/gopher"
      8 MARKDOWN_FILES != find ./$(SRC_DIR) -name '*.md'
      9 
     10 .PHONY: all html rss gopher sync
     11 
     12 all: html rss gopher sync
     13 
     14 html:
     15 	@mkdir -p $(DST_DIR)
     16 	@ssg5 $(SRC_DIR) $(DST_DIR) $(TITLE) $(BASE_URL)
     17 
     18 rss: $(DST_DIR)/rss.xml
     19 
     20 $(DST_DIR)/rss.xml : $(DST_DIR)/index.html
     21 	@rssg $(SRC_DIR)/index.html $(TITLE) $(BASE_URL) > $(DST_DIR)/rss.xml
     22 
     23 gopher: 
     24 	@mkdir -p $(GOPHER_DIR)
     25 	@ggen $(SRC_DIR) $(GOPHER_DIR)
     26 
     27 sync:
     28 	@rsync -avz --delete $(DST_DIR)/ $(HTTP_SERVER)/
     29 	@rsync -avz --delete $(GOPHER_DIR)/ $(GOPHER_SERVER)/