Add Makefile to simplify release package creation
This commit is contained in:
3
.gitignore
vendored
Normal file
3
.gitignore
vendored
Normal file
@@ -0,0 +1,3 @@
|
||||
kterm
|
||||
kterm.kpack
|
||||
kterm-*.gz
|
21
Makefile
Normal file
21
Makefile
Normal 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 $@ $^
|
Reference in New Issue
Block a user