adds blog_rss_feed_rule to http/Makefile
This commit is contained in:
@@ -41,6 +41,11 @@ out/%.$(ext): src/%$(if $(layout),.$(layout)).upp$(ext) $(layout_file) $(compone
|
|||||||
./bin/mkws https://joeac.net "$$$$(realpath $$<)"
|
./bin/mkws https://joeac.net "$$$$(realpath $$<)"
|
||||||
endef
|
endef
|
||||||
|
|
||||||
|
define blog_rss_feed_rule =
|
||||||
|
out/$(blog)/rss.xml: src/$(blog)/rss.uppxml $(blog_src) $(wildcard bin/*)
|
||||||
|
./bin/mkws https://joeac.net "$$(realpath src/$(blog)/rss.uppxml)"
|
||||||
|
endef
|
||||||
|
|
||||||
define blog_rule =
|
define blog_rule =
|
||||||
.PHONY: $(blog)
|
.PHONY: $(blog)
|
||||||
$(blog): $(blog_src)
|
$(blog): $(blog_src)
|
||||||
@@ -88,6 +93,8 @@ $(foreach blog,$(blogs),\
|
|||||||
$(foreach blog,$(blogs),\
|
$(foreach blog,$(blogs),\
|
||||||
$(eval $(call blog_post_rule,$(blog),)))
|
$(eval $(call blog_post_rule,$(blog),)))
|
||||||
|
|
||||||
|
$(foreach blog,$(blogs),$(eval $(blog_rss_feed_rule)))
|
||||||
|
|
||||||
.PHONY: public
|
.PHONY: public
|
||||||
public: $(subst public/,out/,$(shell find -L public/ -type f))
|
public: $(subst public/,out/,$(shell find -L public/ -type f))
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user