add Makefile

This commit is contained in:
agatha 2024-04-13 20:46:55 -04:00
parent 3e7de5dadf
commit b2ba4309cf
2 changed files with 15 additions and 0 deletions

15
extension/Makefile Normal file
View File

@ -0,0 +1,15 @@
# Unshortener Extension Makefile
SRC_DIR := src
BUILD_DIR := build
EXTENSION_NAME := unshortener
VERSION := $(shell jq -r '.version' $(SRC_DIR)/manifest.json)
ZIP_FILE := $(EXTENSION_NAME)-$(VERSION).zip
all: zip
zip:
@mkdir -p $(BUILD_DIR)
zip -r $(BUILD_DIR)/$(ZIP_FILE) $(SRC_DIR) -x "*.DS_Store"
clean:
rm -rf $(BUILD_DIR)
.PHONY: all zip clean

Binary file not shown.