- Notifications
You must be signed in to change notification settings - Fork 6
Expand file tree
/
Copy pathMakefile
More file actions
Latest commit
17 lines (14 loc) · 466 Bytes
/
Copy pathMakefile
File metadata and controls
17 lines (14 loc) · 466 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
ver := $(subst v, , $(subst ., ,$(shell git describe --tags | grep -o -E "v[0-9]+\.[0-9]+\.[0-9]+")))
ver_maj := $(word 1,${ver})
ver_min := $(word 2,${ver})
ver_pat := $(word 3,${ver})
all: funscripting.zip
funscripting.zip: *.py
-mkdir -p funscripting
cp $^ funscripting/
sed -i 's/"version": (0, 0, 0)/"version": ($(ver_maj), $(ver_min), $(ver_pat))/g' funscripting/__init__.py
zip -FSr $@ funscripting
-rm -r funscripting
.PHONY: clean
clean:
-rm *.zip