may be working packaging for arch and alpine
This commit is contained in:
parent
caad031aa1
commit
897a36e8e0
12 changed files with 120 additions and 34 deletions
28
Makefile
28
Makefile
|
@ -1,22 +1,22 @@
|
|||
# FOR JUST BUILD USE MESON
|
||||
# THIS IS A PACKAGING TOOL
|
||||
# You can still use meson, but can make
|
||||
|
||||
NAME = er2cord
|
||||
BDIR = /tmp/$(NAME)
|
||||
DESTDIR ?= /
|
||||
|
||||
all: tar deb clean
|
||||
all: build
|
||||
build: build/$(NAME)
|
||||
|
||||
base:
|
||||
mkdir -p dist
|
||||
meson build --prefix=$(BDIR)
|
||||
build/$(NAME):
|
||||
meson build
|
||||
ninja -C build
|
||||
|
||||
install: build
|
||||
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
|
||||
docs: build
|
||||
mkdir -p "$(DESTDIR)"
|
||||
find dist/ ! -name '*er2cord*' -exec cp -f "{}" "$(DESTDIR)" \;
|
||||
|
||||
clean:
|
||||
rm -rf build $(BDIR)
|
||||
rm -rf build
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue