diff options
author | Richard Ipsum <richardipsum@fastmail.co.uk> | 2017-05-08 13:15:17 +0100 |
---|---|---|
committer | Richard Ipsum <richardipsum@fastmail.co.uk> | 2017-05-08 23:52:11 +0100 |
commit | 28060bb52dd75c398ee90a8ab679a024814f4441 (patch) | |
tree | 6dcc5201fa2ea272c32c34cc7f74dbac3b66efeb | |
parent | dc570839c0d008db3ba8f97ee74650b9248282a8 (diff) | |
download | luxio-28060bb52dd75c398ee90a8ab679a024814f4441.tar.gz |
Makefile: Add rules to build and install docs
-rw-r--r-- | Makefile | 15 |
1 files changed, 14 insertions, 1 deletions
@@ -1,3 +1,7 @@ +PREFIX ?= /usr +CP := cp -r +RM := rm -rf + .PHONY: all all: lua-5.1-try lua-5.2-try @@ -6,6 +10,15 @@ include findlua.mk .PHONY: install install: lua-5.1-try-install lua-5.2-try-install +.PHONY: install-doc +install-doc: doc + $(INSTALL) -d $(DESTDIR)$(PREFIX)/share/doc/luxio + $(CP) doc/* $(DESTDIR)$(PREFIX)/share/doc/luxio + +.PHONY: doc +doc: + ldoc . + CFLAGS ?= -O2 -Wall INSTALL := /usr/bin/install @@ -13,7 +26,7 @@ LUALIBS := $(patsubst %,luxio/%.lua, event simple subprocess) .PHONY: clean clean: - $(RM) *.so *.o luxio_constants.inc luxio-5.1 luxio-5.2 + $(RM) *.so *.o luxio_constants.inc luxio-5.1 luxio-5.2 doc luxio_constants.inc: luxio_constants.inc.in const-proc.lua $(LUA_REPL) ./const-proc.lua < $^ > $@ |