er2cord/Makefile
2021-11-07 21:34:50 +03:00

22 lines
361 B
Makefile

# 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)