File

Makefile @ 463:a2452d3bd828

Add a top-level Makefile and ./configure script. Update util-src Makefile for this.
author Matthew Wild <mwild1@gmail.com>
date Sat, 29 Nov 2008 02:07:33 +0000
child 464:f1827353fd58
line wrap: on
line source


include config.unix

BIN = $(DESTDIR)$(PREFIX)/bin
CONFIG = $(DESTDIR)$(SYSCONFDIR)
MODULES = $(DESTDIR)$(PREFIX)/lib/prosody/modules

SOURCEDIR = $(DESTDIR)$(PREFIX)/lib/prosody

all:
	$(MAKE) all -C util-src

install: prosody
	install -d $(BIN) $(CONFIG) $(MODULES)
	install ./prosody $(BIN)
	install -m644 plugins/* $(MODULES)
	install -m644 prosody.cfg.lua $(CONFIG)
	$(MAKE) install -C util-src

clean:
	$(MAKE) clean -C util-src