ensures that the PVE modules and libraries currently build get used,
not the installed ones.
Besides correctness from a Packaging POV this also makes bootstrapping
easier.
Reported-by: Rhonda D'Vine <rhonda@proxmox.com>
Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
SUBDIRS := PVE src test
+export LD_LIBRARY_PATH+=$(CURDIR)/PVE
+export PERLLIB+=$(CURDIR)/PVE
+
all:
for i in $(SUBDIRS); do $(MAKE) -C $$i $@; done
for d in ${SUBDIRS}; do $(MAKE) -C $$d install; done
%.bash-completion:
- LD_LIBRARY_PATH=. perl -I.. -T -e "use PVE::CLI::$*; PVE::CLI::$*->generate_bash_completions();" >$@.tmp
+ perl -I.. -T -e "use PVE::CLI::$*; PVE::CLI::$*->generate_bash_completions();" >$@.tmp
mv $@.tmp $@
Cluster/IPCConst.pm:
$(MAKE) -C Cluster IPCConst.pm
check: IPCC.so Cluster/IPCConst.pm
- LD_LIBRARY_PATH=. perl -I.. -T -e "use PVE::CLI::pvecm; PVE::CLI::pvecm->verify_api();"
+ perl -I.. -T -e "use PVE::CLI::pvecm; PVE::CLI::pvecm->verify_api();"
CC=gcc
CFLAGS += -fPIC -Wl,-z,relro -Wall -Werror -Wno-strict-aliasing -g -O2 -shared
IPCC.so: IPCC.o
$(CC) ${CFLAGS} ${LDFLAGS} -shared -o $@ $<
-export PERLLIB=..
export NOVIEW=1
-include /usr/share/pve-doc-generator/pve-doc-generator.mk