variations on the makefile
This commit is contained in:
parent
3243fc2e81
commit
06322669bb
5
Makefile
5
Makefile
|
@ -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
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue