forked from buzzert/smartbar
css fix
This commit is contained in:
5
Makefile
5
Makefile
@@ -5,6 +5,8 @@ endif
|
||||
|
||||
PAGES := $(sort $(wildcard pages/*.html)) pages.yaml
|
||||
TEMPLATES := $(sort $(wildcard templates/*.gohtml))
|
||||
ASSETS_DIR := assets
|
||||
ASSETS_FILES := $(shell find $(ASSETS_DIR) -type f 2>/dev/null)
|
||||
|
||||
OUT_DIR := _dist
|
||||
PAGES_DIR := pages
|
||||
@@ -14,9 +16,10 @@ TEMPLATES_DIR := templates
|
||||
|
||||
build: $(OUT_DIR)/index.stamp
|
||||
|
||||
$(OUT_DIR)/index.stamp: $(PAGES) $(TEMPLATES) cmd/build/main.go
|
||||
$(OUT_DIR)/index.stamp: $(PAGES) $(TEMPLATES) $(ASSETS_FILES) cmd/build/main.go
|
||||
@$(GO) run ./cmd/build --pages $(PAGES_DIR) --out $(OUT_DIR) --templates $(TEMPLATES_DIR) --order pages.yaml
|
||||
@mkdir -p $(OUT_DIR)
|
||||
@if [ -d $(ASSETS_DIR) ]; then rm -rf $(OUT_DIR)/$(ASSETS_DIR); cp -r $(ASSETS_DIR) $(OUT_DIR)/; fi
|
||||
@date +%s > $(OUT_DIR)/index.stamp
|
||||
|
||||
serve: build
|
||||
|
||||
Reference in New Issue
Block a user