Skip to content
Permalink
Browse files

Remove documentation target from Makefile

  • Loading branch information...
jung-kurt committed Jul 24, 2016
1 parent fbaa257 commit 25f4c080e8059b5b49f9cd5cbf6a1da9b2d3c6ac
Showing with 7 additions and 31 deletions.
  1. +5 −29 Makefile
  2. +1 −1 README.md
  3. +1 −1 doc/build.md
@@ -5,7 +5,6 @@ include .config

PREFIX ?= /usr/local
MODDIR ?= $(PREFIX)/lib/lua/5.2
DOCDIR ?= $(PREFIX)/share/doc/luahpdf
LUALIB ?= -llua5.2
LUAINC ?= -I/usr/include/lua5.2
HPDFLIB ?= -lhpdf
@@ -43,15 +42,6 @@ PDF = \
demo/slide_show_demo.pdf \
demo/text_demo.pdf

HTML = \
doc/html/binding-changes.html \
doc/html/binding-notes.html \
doc/html/build.html \
doc/html/change-log.html \
doc/html/demos.html \
doc/html/index.html \
doc/html/license.html

$(TARGET) : hpdf.o
$($(PLATFORM)_LINK)
$($(PLATFORM)_REPORT)
@@ -67,26 +57,15 @@ test : $(TARGET)

all : test

install : $(TARGET) doc
install : $(TARGET)
install -m 0755 -d "$(DESTDIR)$(MODDIR)"
install -m 0755 $(TARGET) "$(DESTDIR)$(MODDIR)"
install -m 0755 -d "$(DESTDIR)$(DOCDIR)"
install -m 0755 -d "$(DESTDIR)$(DOCDIR)/text"
install -m 0755 -d "$(DESTDIR)$(DOCDIR)/html"
install -m 0644 README.md doc/*.lua "$(DESTDIR)$(DOCDIR)"
install -m 0644 doc/text/*.txt "$(DESTDIR)$(DOCDIR)/text"
install -m 0644 doc/html/*.html doc/html/*.css doc/html/*.png "$(DESTDIR)$(DOCDIR)/html"

doc : $(HTML)

demo : $(PDF)

package : clean doc
package : clean
rm -fr $(PACKAGE)
mkdir -p $(PACKAGE)/doc/text $(PACKAGE)/doc/html $(PACKAGE)/demo $(PACKAGE)/windows
cp doc/*.lua $(PACKAGE)/doc
cp doc/text/*.txt $(PACKAGE)/doc/text
cp doc/html/*.css doc/html/*.png doc/html/*.html $(PACKAGE)/doc/html
mkdir -p $(PACKAGE)/demo $(PACKAGE)/windows
cp demo/* $(PACKAGE)/demo
cp windows/* $(PACKAGE)/windows
cp README Makefile hpdf.c $(PACKAGE)
@@ -95,12 +74,9 @@ package : clean doc
rm -fr $(PACKAGE)

clean :
rm -f $(PDF) $(HTML) $(TARGET) $(TAR) $(ZIP) *.o dump

.PHONY : main doc demo clean lib package test install
rm -f $(PDF) $(TARGET) $(TAR) $(ZIP) *.o dump

$(HTML): doc/html/%.html: doc/text/%.txt
$(LUA) doc/txt2html.lua < $< > $@
.PHONY : main demo clean lib package test install

$(PDF): %.pdf: %.lua $(TARGET)
@$(LUAC) -l -p $< | grep SETGLOBAL; true
@@ -1,4 +1,4 @@
![LuaHPDF](doc/html/luahpdf.png?raw=true "LuaHPDF")
![LuaHPDF](doc/luahpdf.png?raw=true "LuaHPDF")

LuaHPDF is a module that lets you programmatically create PDF files using
[Lua][1]. It does this by binding to the [Haru Free PDF Library][2], an
@@ -109,5 +109,5 @@ for the module.
See the [demos][1] page for instructions on generating the demonstration PDF
files.

[1]: demos.html
[1]: demos.md
[2]: http://mingw-cross.sourceforge.net/

0 comments on commit 25f4c08

Please sign in to comment.
You can’t perform that action at this time.