Add Makefile to simplify release package creation

This commit is contained in:
2025-05-14 23:03:41 +05:00
parent b4d3768c46
commit 7b467b4d19
2 changed files with 24 additions and 0 deletions

3
.gitignore vendored Normal file
View File

@@ -0,0 +1,3 @@
kterm
kterm.kpack
kterm-*.gz

21
Makefile Normal file
View File

@@ -0,0 +1,21 @@
VER=$(shell git describe --tags --abbrev=0)
FASM=fasm
KPACK=../kpack/linux/kpack
PKGFILES=kterm kterm.kpack CHANGELOG.md README.md screenshot.png
PKGNAME=kterm-$(VER).tar.gz
.PHONY: clean all
all: $(PKGNAME)
clean:
rm -f kterm kterm.kpack $(PKGNAME)
kterm: kterm.asm
$(FASM) $^ $@
kterm.kpack: kterm
$(KPACK) $^ $@
$(PKGNAME): $(PKGFILES)
tar czf $@ $^