File: Makefile

package info (click to toggle)
lua-coxpcall 1.17.0-1
  • links: PTS, VCS
  • area: main
  • in suites: bookworm, bullseye, sid
  • size: 172 kB
  • sloc: sh: 28; makefile: 16
file content (22 lines) | stat: -rw-r--r-- 439 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
# $Id: Makefile,v 1.3 2008/01/22 18:39:18 mascarenhas Exp $

config_file:=config

DESTDIR ?= /

ifneq '$(wildcard $(config_file))' ''
include $(config_file)
endif

$(config_file):
	chmod +x configure

install: $(config_file)
	mkdir -p $(DESTDIR)$(LUA_DIR)
	cp src/coxpcall.lua $(DESTDIR)$(LUA_DIR)/

install-doc: install
	mkdir -p $(DESTDIR)$(DOC_PREFIX)/doc
	cp -r doc/* $(DESTDIR)$(DOC_PREFIX)/doc
	echo "Go to $(DOC_PREFIX) for docs!"