aboutsummaryrefslogtreecommitdiff
path: root/Makefile
diff options
context:
space:
mode:
authorMark Pulford <mark@kyne.com.au>2011-12-12 23:23:32 +1030
committerMark Pulford <mark@kyne.com.au>2011-12-12 23:23:32 +1030
commit71c5dd86f14a73d97e2cb57e81755c4844938697 (patch)
tree124d6c7a1d46463826cd9d45e288f200b7b05e08 /Makefile
parentbd994cd7976ac93c530792e3c0d6f45a33c757b4 (diff)
downloadlua-cjson-71c5dd86f14a73d97e2cb57e81755c4844938697.tar.gz
lua-cjson-71c5dd86f14a73d97e2cb57e81755c4844938697.tar.bz2
lua-cjson-71c5dd86f14a73d97e2cb57e81755c4844938697.zip
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
Diffstat (limited to 'Makefile')
-rw-r--r--Makefile7
1 files changed, 6 insertions, 1 deletions
diff --git a/Makefile b/Makefile
index 1eb1090..cad06be 100644
--- a/Makefile
+++ b/Makefile
@@ -48,10 +48,12 @@ INSTALL_CMD = install
48CJSON_CFLAGS += -fpic -I$(LUA_INCLUDE_DIR) -DVERSION=\"$(CJSON_VERSION)\" 48CJSON_CFLAGS += -fpic -I$(LUA_INCLUDE_DIR) -DVERSION=\"$(CJSON_VERSION)\"
49OBJS := lua_cjson.o strbuf.o 49OBJS := lua_cjson.o strbuf.o
50 50
51.PHONY: all clean install package 51.PHONY: all clean install package doc
52 52
53all: cjson.so 53all: cjson.so
54 54
55doc: manual.html
56
55.c.o: 57.c.o:
56 $(CC) -c $(CFLAGS) $(CPPFLAGS) $(CJSON_CFLAGS) -o $@ $< 58 $(CC) -c $(CFLAGS) $(CPPFLAGS) $(CJSON_CFLAGS) -o $@ $<
57 59
@@ -62,6 +64,9 @@ install: cjson.so
62 mkdir -p $(DESTDIR)/$(LUA_MODULE_DIR) 64 mkdir -p $(DESTDIR)/$(LUA_MODULE_DIR)
63 $(INSTALL_CMD) cjson.so $(DESTDIR)/$(LUA_MODULE_DIR) 65 $(INSTALL_CMD) cjson.so $(DESTDIR)/$(LUA_MODULE_DIR)
64 66
67manual.html: manual.txt
68 asciidoc -n -a toc manual.txt
69
65clean: 70clean:
66 rm -f *.o *.so 71 rm -f *.o *.so
67 72