Makefile
raw| 1 | # $Id: Makefile,v 1.3 2008/01/22 18:39:18 mascarenhas Exp $ |
| 2 | |
| 3 | config_file:=config |
| 4 | |
| 5 | DESTDIR ?= / |
| 6 | |
| 7 | ifneq '$(wildcard $(config_file))' '' |
| 8 | include $(config_file) |
| 9 | endif |
| 10 | |
| 11 | $(config_file): |
| 12 | chmod +x configure |
| 13 | |
| 14 | install: $(config_file) |
| 15 | mkdir -p $(DESTDIR)$(LUA_DIR) |
| 16 | cp src/coxpcall.lua $(DESTDIR)$(LUA_DIR)/ |
| 17 | |
| 18 | install-doc: install |
| 19 | mkdir -p $(DESTDIR)$(DOC_PREFIX)/doc |
| 20 | cp -r doc/* $(DESTDIR)$(DOC_PREFIX)/doc |
| 21 | echo "Go to $(DOC_PREFIX) for docs!" |
| 22 |