ci: add vn make rule
continuous-integration/drone/push Build is passing
Details
continuous-integration/drone/push Build is passing
Details
This commit is contained in:
parent
3ea8ddd37d
commit
17fce21e28
9
makefile
9
makefile
|
@ -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
|
||||
|
|
Loading…
Reference in New Issue