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
|
/assets/sass/*.css
|
||||||
*.map
|
*.map
|
||||||
/OgreAlert
|
/build
|
||||||
OgreAlert.zip
|
ogrealert.zip
|
||||||
|
|||||||
13
Makefile
13
Makefile
@@ -1,9 +1,10 @@
|
|||||||
PACKAGE = OgreAlert
|
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:
|
dir:
|
||||||
mkdir $(DIR)
|
mkdir $(DIR)
|
||||||
@@ -16,16 +17,16 @@ copy:
|
|||||||
cp -f ./* $(DIR) || true
|
cp -f ./* $(DIR) || true
|
||||||
|
|
||||||
rm $(DIR)/Makefile
|
rm $(DIR)/Makefile
|
||||||
rm $(DIR)/$(PACKAGE).zip || true
|
rm $(DIR)/$(SLUG).zip || true
|
||||||
|
|
||||||
rm -r $(DIR)/assets/sass/lib
|
rm -r $(DIR)/assets/sass/lib
|
||||||
rm $(DIR)/assets/sass/*.scss
|
rm $(DIR)/assets/sass/*.scss
|
||||||
rm $(DIR)/assets/sass/*.map
|
rm $(DIR)/assets/sass/*.map
|
||||||
|
|
||||||
zip:
|
zip:
|
||||||
zip -r ./$(PACKAGE).zip $(DIR)
|
zip -r ./$(SLUG).zip $(DIR)
|
||||||
rm -r $(DIR) || true
|
rm -r $(DIR) || true
|
||||||
|
|
||||||
clean:
|
clean:
|
||||||
rm -r $(DIR) || true
|
rm -r $(DIR) || true
|
||||||
rm ./$(PACKAGE).zip || true
|
rm ./$(SLUG).zip || true
|
||||||
|
|||||||
Reference in New Issue
Block a user