35 lines
584 B
Makefile
35 lines
584 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)/composer.json
|
|
rm $(DIR)/composer.lock
|
|
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
|