From 793896ede5153d5a5f7a96136857b5d1422a9ef4 Mon Sep 17 00:00:00 2001 From: Jesse Laprade Date: Sat, 30 May 2020 14:51:30 -0400 Subject: [PATCH] updated Makefile --- Makefile | 23 ++++++++++++++--------- 1 file changed, 14 insertions(+), 9 deletions(-) diff --git a/Makefile b/Makefile index 116cd2b..059ab08 100644 --- a/Makefile +++ b/Makefile @@ -1,6 +1,7 @@ directory-local = ~/.local/bin directory-global = /usr/local/bin directory-source = src +directory-current = . file-source = rodo.rkt file-source-source = $(directory-source)/$(file-source) @@ -9,6 +10,7 @@ file-executable = rodo file-executable-local = $(directory-local)/$(file-executable) file-executable-global = $(directory-global)/$(file-executable) file-executable-source= $(directory-source)/$(file-executable) +file-executable-current= $(directory-current)/$(file-executable) help: @echo "How to use this Makefile" @@ -17,6 +19,7 @@ help: @echo "This Makefile supports the following commands:" @echo " help - Displays this help message" @echo " clean - Removes any $(file-executable) executable from $(directory-source)/" + @echo " build - Creates a $(file-executable) in your current directory" @echo " install-global - Installs a $(file-executable) executable in $(directory-global)/" @echo " uninstall-global - Deletes a $(file-executable) executable from $(directory-global)/" @echo " install-local - Installs a $(file-executable) executable in $(directory-local)/" @@ -36,18 +39,20 @@ uninstall-global: @echo "Uninstalling $(file-executable) from $(file-executable-global) ..." @rm -f $(file-executable-global) -install-local: executable - @echo "Moving $(file-executable-source) to $(file-executable-local) ..." - @mv $(file-executable-source) $(file-executable-local) +install-local: build + @echo "Moving $(file-executable-current) to $(file-executable-local) ..." + @mv $(file-executable-current) $(file-executable-local) -install-global: executable - @echo "Moving $(file-executable-source) to $(file-executable-global) ..." - @mv $(file-executable-source) $(file-executable-global) +install-global: build + @echo "Moving $(file-executable-current) to $(file-executable-global) ..." + @mv $(file-executable-current) $(file-executable-global) clean: - @echo "Deleting any $(file-executable) executables found at $(file-executable-source) ..." - @rm -f $(file-executable-source) + @echo "Deleting any $(file-executable) executables found in your current folder ..." + @rm -f $(file-executable-current) -executable: +build: @echo "Creating $(file-executable-source) executable from $(file-source-source) ..." @raco exe $(file-source-source) + @echo "Moving $(file-executable-source) executable to your current folder ..." + @mv $(file-executable-source) $(directory-current)/