Makefile

Sun, 20 May 2018 01:16:22 +0200

author
Kim Alvefur <zash@zash.se>
date
Sun, 20 May 2018 01:16:22 +0200
changeset 417
d46a502955c0
parent 416
92ce569b9b73
child 419
bf2fe3fc2f73
permissions
-rw-r--r--

verse: Remove use of deprecated module() function

include config.unix

ifndef SQUISH
  $(error Please run ./configure first)
endif

SOURCE_FILES=$(shell $(SQUISH) --list-files)
MISSING_FILES=$(shell $(SQUISH) --list-missing-files)

all: verse.lua

verse.lua: $(SOURCE_FILES)
	./buildscripts/squish

install: verse.lua
	install -t $(LUA_DIR) -m 644 $^

clean:
	rm verse.lua

$(MISSING_FILES):
	mkdir -p "$(@D)"
	wget "$(PROSODY_URL)$@" -O "$@"

rsm.lib.lua:
	wget https://hg.prosody.im/prosody-0.10/raw-file/0.10.1/util/rsm.lua -O rsm.lib.lua

release: $(MISSING_FILES)
	rm config.unix

.PHONY: all release clean install

mercurial