Updated Makefile to use slug as file name.
This commit is contained in:
4
.gitignore
vendored
4
.gitignore
vendored
@@ -1,4 +1,4 @@
|
||||
/assets/sass/*.css
|
||||
*.map
|
||||
/OgreAlert
|
||||
OgreAlert.zip
|
||||
/build
|
||||
ogrealert.zip
|
||||
|
||||
13
Makefile
13
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
|
||||
|
||||
Reference in New Issue
Block a user