moth/mdwn/mdwn.mk

21 lines
417 B
Makefile
Raw Normal View History

2010-03-02 22:18:13 -07:00
MDWN_DIR = mdwn
MDWN_SRC += $(wildcard $(MDWN_DIR)/src/*.mdwn)
MDWN_SRC += $(wildcard $(MDWN_DIR)/src/*/*.mdwn)
MDWN_SRC += $(wildcard $(MDWN_DIR)/src/*/*/*.mdwn)
2010-05-15 17:21:47 -06:00
MDWN_OUT = $(subst $(MDWN_DIR)/src/, $(DESTDIR)$(WWW)/, $(MDWN_SRC:.mdwn=.html))
2010-03-02 22:18:13 -07:00
2010-05-15 10:32:13 -06:00
mdwn:
2010-03-02 22:18:13 -07:00
mdwn-install: $(MDWN_OUT)
2010-05-15 17:21:47 -06:00
$(DESTDIR)$(WWW)/%.html: $(MDWN_DIR)/src/%.mdwn
2010-03-02 22:18:13 -07:00
install -d $(@D)
$(MDWNTOHTML) $< $@
mdwn-clean:
2010-05-15 10:32:13 -06:00
rm -f $(MDWN_OUT)
TARGETS += mdwn