-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathMakefile
More file actions
24 lines (21 loc) · 744 Bytes
/
Copy pathMakefile
File metadata and controls
24 lines (21 loc) · 744 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
# Release build for an XC_VM module repository.
# Produces the two assets the panel fetches per release tag:
# module.tar.gz — the module tree (module.json at the archive root)
# hashes.md5 — "<md5> module.tar.gz" (checked by GitHubReleases::getAssetHash)
MODULE_TAR := module.tar.gz
HASH_FILE := hashes.md5
.PHONY: release clean
release: clean
@tmp=$$(mktemp) && tar \
--exclude=./.git \
--exclude=./.github \
--exclude=./Makefile \
--exclude=./README.md \
--exclude=./RELEASE.md \
--exclude=./LICENSE \
--exclude=./.gitignore \
-czf "$$tmp" -C . . && mv "$$tmp" $(MODULE_TAR)
md5sum $(MODULE_TAR) > $(HASH_FILE)
@echo "Built $(MODULE_TAR) + $(HASH_FILE)"
clean:
@rm -f $(MODULE_TAR) $(HASH_FILE)