variations on the makefile
This commit is contained in:
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
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user