Created
December 3, 2019 22:27
-
-
Save tamakiii/059d51c35c151fc9b0e976ac71dc1eb1 to your computer and use it in GitHub Desktop.
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
.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