diff --git a/Makefile b/Makefile index 2f477f7..94c1ecf 100644 --- a/Makefile +++ b/Makefile @@ -1,6 +1,7 @@ .PHONY: all test clean version := $(shell swipl -q -s pack -g 'version(V),writeln(V)' -t halt) +packfile = edcgs-$(version).tgz SWIPL := swipl @@ -11,3 +12,9 @@ version: test: @$(SWIPL) -q -g 'main,halt(0)' -t 'halt(1)' -s test/test.pl + +package: test + tar cvzf $(packfile) prolog test pack.pl README.md LICENSE + +release: test + hub release create -m v$(version) v$(version)