sfeed

Simple RSS and Atom feed parser
git clone https://git.sinitax.com/codemadness/sfeed
Log | Files | Refs | README | LICENSE | Upstream | sfeed.txt

commit 2213d59d6d59b364160af4f043a75497146ed07e
parent 8b4664f694eee80e78903605e21fee770ba7cedf
Author: Hiltjo Posthuma <hiltjo@codemadness.org>
Date:   Fri,  2 Jan 2015 14:36:15 +0100

Makefile: sort files, clean libcompat (WIP)

Diffstat:
MMakefile | 23+++++++++++++----------
1 file changed, 13 insertions(+), 10 deletions(-)

diff --git a/Makefile b/Makefile @@ -1,22 +1,23 @@ include config.mk NAME = sfeed +VERSION = 0.9 SRC = \ sfeed.c\ - sfeed_plain.c\ + sfeed_frames.c\ sfeed_html.c\ sfeed_opml_import.c\ - sfeed_frames.c\ - sfeed_xmlenc.c\ + sfeed_plain.c\ sfeed_web.c\ - xml.c\ - util.c + sfeed_xmlenc.c\ + util.c\ + xml.c BIN = \ sfeed\ - sfeed_plain\ - sfeed_html\ sfeed_frames\ + sfeed_html\ sfeed_opml_import\ + sfeed_plain\ sfeed_web\ sfeed_xmlenc SCRIPTS = \ @@ -40,8 +41,8 @@ DOC = \ README.xml\ TODO HDR = \ - util.h\ compat.h\ + util.h\ xml.h LIBCOMPAT = libcompat.a @@ -75,11 +76,13 @@ dist: $(BIN) (cd release/${VERSION}; \ tar -czf ../../sfeed-${VERSION}.tar.gz .) +# man to HTML: make sure to copy the mandoc example stylesheet to +# doc/html/man.css . doc-html: $(MAN1) mkdir -p doc/html for m in $(MAN1); do mandoc -Thtml -Ostyle=man.css $$m > doc/html/$$m.html; done -# NOTE: legacy man pages, if you want semantic mandoc pages just copy ${MAN1} +# legacy man pages, if you want semantic mandoc pages just copy them. doc-oldman: $(MAN1) mkdir -p doc/man for m in $(MAN1); do mandoc -Tman $$m > doc/man/$$m; done @@ -112,7 +115,7 @@ sfeed_web: sfeed_web.o xml.o util.o ${CC} -o $@ sfeed_web.o xml.o util.o ${LDFLAGS} clean: - rm -f ${BIN} ${OBJ} + rm -f ${BIN} ${OBJ} ${LIBCOMPAT} install: all @echo installing executable file to ${DESTDIR}${PREFIX}/bin