diff options
Diffstat (limited to 'Makefile')
-rw-r--r-- | Makefile | 20 |
1 files changed, 20 insertions, 0 deletions
diff --git a/Makefile b/Makefile new file mode 100644 index 0000000..431d324 --- /dev/null +++ b/Makefile @@ -0,0 +1,20 @@ +PREFIX ?= /usr/local +BINDIR ?= $(PREFIX)/bin +DATADIR ?= $(PREFIX)/share + +BUILD_DIR := ./build +TARGET_EXEC := yy + +bashly ?= docker run --rm -it --user $(id -u):$(id -g) --volume "$(PWD):/app" -e BASHLY_TARGET_DIR=$(BUILD_DIR) -e BASHLY_ENV=production dannyben/bashly + +$(BUILD_DIR)/$(TARGET_EXEC): + @mkdir -p $(BUILD_DIR) + @$(bashly) generate + +.PHONY: install +install: $(BUILD_DIR)/$(TARGET_EXEC) + @install -vD -m755 $(BUILD_DIR)/$(TARGET_EXEC) $(DESTDIR)$(BINDIR)/$(TARGET_EXEC) + +.PHONY: clean +clean: + @rm -r $(BUILD_DIR)
\ No newline at end of file |