Created
October 30, 2019 09:46
-
-
Save coord-e/4dd6dca764dbe0bee71d6a57d0ae899e to your computer and use it in GitHub Desktop.
Makefile for satysfi
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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