reorder makefile rules

This commit is contained in:
ktyl 2022-05-15 14:33:43 +01:00
parent 46bb4a065b
commit 8033c00a8b
1 changed files with 5 additions and 5 deletions

View File

@ -22,17 +22,17 @@ HTML_TARGETS = $(PAGES:$(ROOT_DIR)/%.html=$(OUT_DIR)/%.html)
CSS_TARGETS = $(STYLES:$(ROOT_DIR)/%.css=$(OUT_DIR)/%.css) CSS_TARGETS = $(STYLES:$(ROOT_DIR)/%.css=$(OUT_DIR)/%.css)
PNG_TARGETS = $(IMG_DIR)/%.png=$(OUT_DIR)/%.png PNG_TARGETS = $(IMG_DIR)/%.png=$(OUT_DIR)/%.png
site: $(HTML_TARGETS) $(CSS_TARGETS)
cp $(IMG_DIR)/*.png $(OUT_DIR)/
run: site
deploy: site deploy: site
cp -r $(OUT_DIR) $(SITE_NAME) cp -r $(OUT_DIR) $(SITE_NAME)
rsync -rP $(SITE_NAME) $(HOST):~ rsync -rP $(SITE_NAME) $(HOST):~
rm -r $(SITE_NAME) rm -r $(SITE_NAME)
ssh $(HOST) "sudo $(REMOTE_SCRIPT)" ssh $(HOST) "sudo $(REMOTE_SCRIPT)"
run: site
site: $(HTML_TARGETS) $(CSS_TARGETS)
cp $(IMG_DIR)/*.png $(OUT_DIR)/
$(OUT_DIR)/%.html: $(ROOT_DIR)/%.html $(HTML_INCLUDES) $(OUT_DIR)/%.html: $(ROOT_DIR)/%.html $(HTML_INCLUDES)
mkdir -p $(OUT_DIR) mkdir -p $(OUT_DIR)
python ppp/ppp.py $< $(HTML_INCLUDES) > $@ python ppp/ppp.py $< $(HTML_INCLUDES) > $@