From 71c5dd86f14a73d97e2cb57e81755c4844938697 Mon Sep 17 00:00:00 2001 From: Mark Pulford Date: Mon, 12 Dec 2011 23:23:32 +1030 Subject: Convert documentation to AsciiDoc - Rename README to manual.txt and add AsciiDoc markup - Rewrite some sections of documentation (more outstanding) - Add "doc" Makefile target - Update RPM spec file to include HTML output --- Makefile | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) (limited to 'Makefile') diff --git a/Makefile b/Makefile index 1eb1090..cad06be 100644 --- a/Makefile +++ b/Makefile @@ -48,10 +48,12 @@ INSTALL_CMD = install CJSON_CFLAGS += -fpic -I$(LUA_INCLUDE_DIR) -DVERSION=\"$(CJSON_VERSION)\" OBJS := lua_cjson.o strbuf.o -.PHONY: all clean install package +.PHONY: all clean install package doc all: cjson.so +doc: manual.html + .c.o: $(CC) -c $(CFLAGS) $(CPPFLAGS) $(CJSON_CFLAGS) -o $@ $< @@ -62,6 +64,9 @@ install: cjson.so mkdir -p $(DESTDIR)/$(LUA_MODULE_DIR) $(INSTALL_CMD) cjson.so $(DESTDIR)/$(LUA_MODULE_DIR) +manual.html: manual.txt + asciidoc -n -a toc manual.txt + clean: rm -f *.o *.so -- cgit v1.2.3-55-g6feb