From dd02b7546ba85140eb8abc9866477365de2ac0f0 Mon Sep 17 00:00:00 2001 From: dcooperdalrymple Date: Wed, 16 Nov 2022 14:16:17 -0600 Subject: [PATCH] Updated Makefile to use slug as file name. --- .gitignore | 4 ++-- Makefile | 13 +++++++------ 2 files changed, 9 insertions(+), 8 deletions(-) diff --git a/.gitignore b/.gitignore index 988bd45..8bb15f6 100644 --- a/.gitignore +++ b/.gitignore @@ -1,4 +1,4 @@ /assets/sass/*.css *.map -/OgreAlert -OgreAlert.zip +/build +ogrealert.zip diff --git a/Makefile b/Makefile index 0235f58..905c042 100644 --- a/Makefile +++ b/Makefile @@ -1,9 +1,10 @@ PACKAGE = OgreAlert -DIR = ./$(PACKAGE) +SLUG = ogrealert +DIR = ./build -all: $(PACKAGE).zip +all: $(SLUG).zip -$(PACKAGE).zip: clean dir copy zip +$(SLUG).zip: clean dir copy zip dir: mkdir $(DIR) @@ -16,16 +17,16 @@ copy: cp -f ./* $(DIR) || true rm $(DIR)/Makefile - rm $(DIR)/$(PACKAGE).zip || true + rm $(DIR)/$(SLUG).zip || true rm -r $(DIR)/assets/sass/lib rm $(DIR)/assets/sass/*.scss rm $(DIR)/assets/sass/*.map zip: - zip -r ./$(PACKAGE).zip $(DIR) + zip -r ./$(SLUG).zip $(DIR) rm -r $(DIR) || true clean: rm -r $(DIR) || true - rm ./$(PACKAGE).zip || true + rm ./$(SLUG).zip || true