Skip to content

Instantly share code, notes, and snippets.

@tamakiii
Created December 3, 2019 22:27
Show Gist options
  • Save tamakiii/059d51c35c151fc9b0e976ac71dc1eb1 to your computer and use it in GitHub Desktop.
Save tamakiii/059d51c35c151fc9b0e976ac71dc1eb1 to your computer and use it in GitHub Desktop.
.PHONY: all clean
DIR := $(realpath $(dir $(lastword $(MAKEFILE_LIST))))
ENVIRONMENT := development
PORT_HTTP := 8080
MOUNT_TYPE := consistent
CURRENT_VOLUME_DIR ?= $(realpath $(shell echo $(DIR) | sed 's|/Users|/System/Volumes/Data/Users|'))
.env:
touch $@
echo "ENVIRONMENT=$(ENVIRONMENT)" >> $@
echo "PORT_HTTP=$(PORT_HTTP)" >> $@
echo "MOUNT_TYPE=$(MOUNT_TYPE)" >> $@
echo "CURRENT_DIR=$(DIR)" >> $@
echo "CURRENT_VOLUME_DIR=$(CURRENT_VOLUME_DIR)" >> $@
clean:
rm -rf .env
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment