engine

website and gopher hole static engine
git clone git://kh1b.org/engine
Log | Files | Refs | README

Makefile (466B)


      1 .PHONY: all clean install
      2 
      3 include config.mk
      4 
      5 all: $(OUTPUT)
      6 
      7 $(OUTPUT): $(HEAD) $(MARKDOWN) $(TAIL)
      8 	@echo "Generating $(OUTPUT)..."
      9 	cat $(HEAD) > $@
     10 	smu $(MARKDOWN) >> $@
     11 	cat $(TAIL) >> $@
     12 
     13 clean:
     14 	@echo "Cleaning up..."
     15 	rm -f $(OUTPUT)
     16 	rm -rf $(WEBROOT)
     17 
     18 install: all
     19 	@echo "Generating deployment directory: $(WEBROOT)"
     20 	@mkdir -p $(WEBROOT)
     21 	@cp $(OUTPUT) $(WEBROOT)/
     22 	@cp $(STATIC_ASSETS) $(WEBROOT)/
     23 
     24 	@echo "Deployment files:"
     25 	@find $(WEBROOT) -type f