Makefile

Fri, 01 Feb 2019 11:35:55 +0000

author
Matthew Wild <mwild1@gmail.com>
date
Fri, 01 Feb 2019 11:35:55 +0000
changeset 168
873f6fec12f2
parent 165
92e1733243d5
child 169
ecae87f5aaba
permissions
-rw-r--r--

docs/install: Add links

include config.unix

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

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

SQUISH_PARAMS=--with-verse --with-server

OUTPUT=build/scansion

BIN_DIR=$(PREFIX)/bin

all: $(OUTPUT)

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

build:
	mkdir build

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

clean:
	rm $(OUTPUT)

test:
	busted

docker:
	docker build -t scansion .

.PHONY: all clean install docker test clean

mercurial