ci: add vn make rule
continuous-integration/drone/push Build is passing Details

This commit is contained in:
ktyl 2024-03-07 00:22:34 +00:00
parent 3ea8ddd37d
commit 17fce21e28
1 changed files with 7 additions and 2 deletions

View File

@ -15,6 +15,8 @@ BLOG_BUILD_DIR = $(BLOG_BASE_DIR)out/html/
BLOG_OUT_DIR = $(OUT_DIR)/blog
BLOG_INDEX = $(BLOG_BUILD_DIR)/index.html
VN = src/vn/
PAGES = $(shell find $(ROOT_DIR) -wholename "$(ROOT_DIR)*.html")
STYLES = $(shell find $(ROOT_DIR) -wholename "$(ROOT_DIR)*.css")
IMAGES = $(shell find $(IMG_DIR) -wholename "$(IMG_DIR)/*.png")
@ -26,7 +28,10 @@ HTML_TARGETS = $(PAGES:$(ROOT_DIR)/%.html=$(OUT_DIR)/%.html)
CSS_TARGETS = $(STYLES:$(ROOT_DIR)/%.css=$(OUT_DIR)/%.css)
PNG_TARGETS = $(IMG_DIR)/%.png=$(OUT_DIR)/%.png
all: html blog | $(OUT_DIR)
all: html blog vn | $(OUT_DIR)
vn: $(VN) | $(OUT_DIR)
cp -r $(VN) $(OUT_DIR)/vn
html: $(HTML_TARGETS) $(CSS_TARGETS) | $(OUT_DIR)
cp $(IMG_DIR)/*.png $(OUT_DIR)/
@ -66,4 +71,4 @@ clean:
make --directory $(BLOG_BASE_DIR) clean
rm -rf $(OUT_DIR)
.PHONY: blog
.PHONY: blog vn