diff options
author | sternenseemann <0rpkxez4ksa01gb3typccl0i@systemli.org> | 2020-08-20 17:32:20 +0200 |
---|---|---|
committer | sternenseemann <0rpkxez4ksa01gb3typccl0i@systemli.org> | 2020-08-20 17:32:20 +0200 |
commit | cada2ed89e5a0b68e2cfd002bf707107fb6d7111 (patch) | |
tree | 6872f2fa3907dfd0e33277f99ba1a49a88e10a19 /Makefile | |
parent | f5f1eb61204bea7ea21af9b9964b63ffb00f2184 (diff) |
feat(rss): minor improvements and refactor time formatting
* add timeutil.{c,h}: utility for formatting timestamps * wrap feed description in CDATA * use xml_escaped where applicable * use time of latest entry for lastBuildDate
Diffstat (limited to 'Makefile')
-rw-r--r-- | Makefile | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/Makefile b/Makefile index f39b88f..27826c4 100644 --- a/Makefile +++ b/Makefile @@ -2,13 +2,13 @@ include config.mk ROOT_DIR:=$(shell dirname $(realpath $(firstword $(MAKEFILE_LIST)))) -sternenblog.cgi: xml.o entry.o index.o cgiutil.o $(TEMPLATE).o main.o +sternenblog.cgi: xml.o entry.o index.o cgiutil.o timeutil.o $(TEMPLATE).o main.o $(CC) $(CFLAGS) -o $@ $^ -main.o: main.c core.h config.h +main.o: main.c core.h timeutil.h config.h $(CC) $(CFLAGS) -c -o main.o $< -$(TEMPLATE).o: $(TEMPLATE).c core.h config.h xml.h cgiutil.h +$(TEMPLATE).o: $(TEMPLATE).c core.h config.h xml.h cgiutil.h timeutil.h $(CC) $(CFLAGS) -I$(ROOT_DIR) -c -o $@ $< # only invoked if config.h does not exist |