Makefile

Tue, 11 Sep 2018 20:59:11 +0100

author
Matthew Wild <mwild1@gmail.com>
date
Tue, 11 Sep 2018 20:59:11 +0100
changeset 121
b09433ea9b0c
parent 119
73655adb5b01
child 122
709d5bb0acb4
permissions
-rw-r--r--

squishy: Add support for optionally building with bundled verse

include config.unix

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

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

OUTPUT=build/scansion

BIN_DIR=$(PREFIX)/bin

all: $(OUTPUT)

$(OUTPUT): build squishy $(SOURCE_FILES)
	$(SQUISH) --output=$(OUTPUT)

build:
	mkdir build

install: $(OUTPUT)
	install -t $(BIN_DIR) -m 655 $^

clean:
	rm $(OUTPUT)

test:
	busted

.PHONY: all clean install

mercurial