variations on the makefile

This commit is contained in:
2020-08-29 14:38:14 +02:00
parent 3243fc2e81
commit 06322669bb

View File

@@ -20,10 +20,8 @@ post-htmls := $(patsubst $(src)/%.md,$(www)/%.html,$(post-sources))
all: $(POSTCC) $(post-htmls) $(post_index) $(feed) $(www_root)/static all: $(POSTCC) $(post-htmls) $(post_index) $(feed) $(www_root)/static
cp -R ~/www/* $(www_root) cp -R ~/www/* $(www_root)
$(www): $(www)/%.html: $(src)/%.md
mkdir -p $(www) mkdir -p $(www)
$(www)/%.html: $(src)/%.md $(www)
$(POSTCC) $< -o $@ $(POSTCC) $< -o $@
$(post_index): $(post-sources) $(post_index): $(post-sources)
@@ -43,3 +41,4 @@ clean:
serve: serve:
cd $(www_root) && python -m SimpleHTTPServer cd $(www_root) && python -m SimpleHTTPServer