add Makefile
This commit is contained in:
parent
3e7de5dadf
commit
b2ba4309cf
15
extension/Makefile
Normal file
15
extension/Makefile
Normal 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
|
BIN
extension/build/unshortener-0.1.zip
Normal file
BIN
extension/build/unshortener-0.1.zip
Normal file
Binary file not shown.
Loading…
Reference in New Issue
Block a user