Makefile (500B)
1 .PHONY: all clean install 2 3 include config.mk 4 5 all: $(TARGET) 6 7 $(TARGET): 8 @echo "generating index files..." 9 $(INDEX_SCRIPT) $(ROOT_DIR) 10 11 clean: 12 @echo "Cleaning generated files and directories..." 13 find $(ROOT_DIR) -name "index.html" -delete 14 rm -rf $(WEBROOT) 15 16 install: all 17 @echo "Generating deployment directory: $(WEBROOT)..." 18 @mkdir -p $(WEBROOT) 19 @rsync -av --exclude='Makefile' --exclude='config.mk' --exclude='.git*' ./ $(WEBROOT)/ 20 21 @echo "Files in $(WEBROOT):" 22 @find $(WEBROOT) -type f 23