er2cord/Makefile

22 lines
345 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 ./
deb: base
cp -r DEBIAN/ $(BDIR)
@dpkg-deb -b $(BDIR) dist/$(NAME).deb
clean:
rm -rf build $(BDIR)