unshorten/extension/Makefile

17 lines
355 B
Makefile
Raw Permalink Normal View History

2024-04-14 00:46:55 +00:00
# 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
2024-04-14 00:55:12 +00:00
2024-04-14 00:46:55 +00:00
zip:
@mkdir -p $(BUILD_DIR)
zip -r $(BUILD_DIR)/$(ZIP_FILE) $(SRC_DIR) -x "*.DS_Store"
2024-04-14 00:55:12 +00:00
2024-04-14 00:46:55 +00:00
clean:
rm -rf $(BUILD_DIR)
.PHONY: all zip clean