Skip to content

Instantly share code, notes, and snippets.

@coord-e
Created October 30, 2019 09:46
Show Gist options
  • Save coord-e/4dd6dca764dbe0bee71d6a57d0ae899e to your computer and use it in GitHub Desktop.
Save coord-e/4dd6dca764dbe0bee71d6a57d0ae899e to your computer and use it in GitHub Desktop.
Makefile for satysfi
IMAGE_NAME := amutake/satysfi:nightly
DIST_DIR := dist
SUDO := sudo
DOCKER := $(SUDO) docker
DOCKER_RUN := $(DOCKER) run --rm -v $(CURDIR):/satysfi $(IMAGE_NAME)
MAIN := main
SOURCES := $(MAIN).saty Makefile $(shell find sections/ -name '*.saty')
OUTPUT := $(DIST_DIR)/$(MAIN).pdf
.PHONY: all
all: $(OUTPUT)
$(OUTPUT): $(SOURCES)
mkdir -p $(DIST_DIR)
$(DOCKER_RUN) satysfi $(MAIN).saty -o $(OUTPUT)
.PHONY: clean
clean:
-rm $(OUTPUT)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment