separate packaging and source build system

Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
This commit is contained in:
Thomas Lamprecht
2023-05-24 16:20:27 +02:00
parent f5e87de606
commit a2242b41fc
213 changed files with 66 additions and 47 deletions

23
src/Makefile Normal file
View File

@ -0,0 +1,23 @@
DESTDIR=
PREFIX=/usr
export PERLDIR=$(PREFIX)/share/perl5
all:
.PHONY: install
install: PVE bin udev-rbd
$(MAKE) -C bin install
$(MAKE) -C PVE install
$(MAKE) -C udev-rbd install
.PHONY: test
test:
perl -I. -T -e "use PVE::CLI::pvesm; PVE::CLI::pvesm->verify_api();"
$(MAKE) -C test
.PHONY: clean
clean:
$(MAKE) -C bin clean
$(MAKE) -C PVE clean
$(MAKE) -C udev-rbd clean