Permalink
Browse files

improving buildsystem to ease configuration for user + fix install ta…

…rget (README was renamed)
  • Loading branch information...
msva committed Jun 14, 2015
1 parent bb72b2c commit 7b18e78bed226f0b184b4ce5224f89831ecad0f5
Showing with 14 additions and 11 deletions.
  1. +1 −0 .config
  2. +13 −11 Makefile
@@ -0,0 +1 @@
# You can redefine some Lua-related and hpdf-related Makefile variables here.
@@ -1,16 +1,18 @@
include .config
# --- Change the settings below to suit your environment. See explanations in
# --- the build documentation for more details. ---
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
HPDFINC=
LUA=lua
LUAC=luac
PLATFORM=linux
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
HPDFINC ?=
LUA ?= lua
LUAC ?= luac
PLATFORM ?= linux
# PLATFORM=macosx
# --- End of user settings, no need to change anything below this line. ---
@@ -71,7 +73,7 @@ install : $(TARGET) doc
install -m 0755 -d "$(DESTDIR)$(DOCDIR)"
install -m 0755 -d "$(DESTDIR)$(DOCDIR)/text"
install -m 0755 -d "$(DESTDIR)$(DOCDIR)/html"
install -m 0644 README doc/*.lua "$(DESTDIR)$(DOCDIR)"
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"

0 comments on commit 7b18e78

Please sign in to comment.