Added Makefile, fixed default install permissions including for executables, made metadata lines ignored when installing for now (they were just added recently and aren't properly handled yet)

This commit is contained in:
2025-06-08 18:09:03 +10:00
parent 99a5a7693e
commit 7642a79c02
2 changed files with 64 additions and 5 deletions

View File

@ -0,0 +1,14 @@
all: slabpkg.pkg
dist/slabpkg: slabpkg.c
$(CC) -o $@ $^
slabpkg.pkg: slabpkg.pkb dist/slabpkg
dist/slabpkg build slabpkg.pkb
testroot/slabpkg: dist/slabpkg slabpkg.pkg testroot/README.md
dist/slabpkg --root ./testroot install slabpkg.pkg
test: dist/slabpkg testroot/slabpkg
dist/slabpkg sum $^
testroot/slabpkg sum $^