Files
ogre-alert/Makefile
2022-11-16 15:29:47 -06:00

33 lines
534 B
Makefile

PACKAGE = OgreAlert
SLUG = ogrealert
DIR = ./$(PACKAGE)
all: $(SLUG).zip
$(SLUG).zip: clean dir copy zip
dir:
mkdir $(DIR)
copy:
cp -RT ./assets $(DIR)/assets
cp -RT ./inc $(DIR)/inc
cp -RT ./lib $(DIR)/lib
cp -RT ./templates $(DIR)/templates
cp -f ./* $(DIR) || true
rm $(DIR)/Makefile
rm $(DIR)/$(SLUG).zip || true
rm -r $(DIR)/assets/sass/lib
rm $(DIR)/assets/sass/*.scss
rm $(DIR)/assets/sass/*.map
zip:
zip -r ./$(SLUG).zip $(DIR)
rm -r $(DIR) || true
clean:
rm -r $(DIR) || true
rm ./$(SLUG).zip || true