File

Makefile @ 504:8ed3c95bf880

squishy: Move the verse namespace prefix into a single place Less repetition Seemed weird that ProsodyModule = VerseModule
author Kim Alvefur <zash@zash.se>
date Fri, 23 Jun 2023 22:21:05 +0200
parent 502:783188a44b0a
line wrap: on
line source

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)
	$(SQUISH)

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

clean:
	rm verse.lua

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

release: $(MISSING_FILES)
	rm config.unix

.PHONY: all release clean install