add packaging
This commit is contained in:
parent
65f7db2d9f
commit
a35225c050
4 changed files with 38 additions and 1 deletions
22
Makefile
Normal file
22
Makefile
Normal file
|
@ -0,0 +1,22 @@
|
|||
# FOR JUST BUILD USE MESON
|
||||
# THIS IS A PACKAGING TOOL
|
||||
|
||||
NAME = er2cord
|
||||
BDIR = /tmp/$(NAME)
|
||||
|
||||
all: tar deb clean
|
||||
|
||||
base:
|
||||
mkdir -p dist
|
||||
meson build --prefix=$(BDIR)
|
||||
ninja -C build install
|
||||
|
||||
tar: base
|
||||
tar -C $(BDIR) -cvzf dist/$(NAME).tar.gz --xform s:'./':: ./
|
||||
|
||||
deb: base
|
||||
cp -r DEBIAN/ $(BDIR)
|
||||
dpkg-deb -b $(BDIR) dist/$(NAME).deb
|
||||
|
||||
clean:
|
||||
rm -rf build $(BDIR)
|
Loading…
Add table
Add a link
Reference in a new issue