From 55fa3de142774621a4e9060c9a80c324225795a3 Mon Sep 17 00:00:00 2001 From: Eugeniy Mikhailov Date: Tue, 20 Jan 2015 23:37:37 -0500 Subject: added mk file to conver reminder format to html --- rem.mk | 32 ++++++++++++++++++++++++++++++++ 1 file changed, 32 insertions(+) create mode 100644 rem.mk diff --git a/rem.mk b/rem.mk new file mode 100644 index 0000000..b070616 --- /dev/null +++ b/rem.mk @@ -0,0 +1,32 @@ +# -*- make -*- +# (C) 2013 by Eugeniy Mikhailov, + +CLEAN_TARGETS += clean_rem +REAL_CLEAN_TARGETS += real_clean_rem + +rem_files = $(wildcard *.rem) +html_from_rem = $(rem_files:%.rem=%.html) + +html_rem: $(html_from_rem) + +$(html_from_rem): %.html : %.rem + remind -p5 $< $(CLASS_STARTING_DAY) | ./bin/rem2html -title "Calendar" | \ + sed 's//\n/' | \ + cat > $@ + +clean_rem: + +real_clean_rem: +ifneq ($(strip $(html_from_rem)),) + rm -f $(html_from_rem) +endif + +dest_dir_rem: + $(INSTALL) -d -m 0755 $(dest_dir) + +install_html_from_rem: dest_dir_rem $(html_from_rem) +ifneq ($(strip $(html_from_rem)),) + $(INSTALL) -m 0644 $(html_from_rem) $(dest_dir)/ +endif + + -- cgit v1.2.3