]> git.proxmox.com Git - pve-cluster.git/blob - data/PVE/Makefile.am
replace hardcoded perl paths with variables coming from perl's Config and ExtUtils...
[pve-cluster.git] / data / PVE / Makefile.am
1 bin_SCRIPTS = pvecm
2
3 IPCC.c: IPCC.xs
4 xsubpp IPCC.xs > IPCC.xsc
5 mv IPCC.xsc IPCC.c
6
7 AM_CFLAGS = -shared -fPIC -Wl,-z,relro -Wall -Werror -Wno-strict-aliasing $(PERL_INC) -DXS_VERSION=VERSION
8 LDADD = $(QB_LIBS)
9
10 perlbin_PROGRAMS = IPCC.so
11 perlbindir = $(PERL_INSTALLARCHLIB)/auto/PVE/IPCC
12
13 %.1.gz: %.1.pod
14 cat $<|pod2man -n $* -s 1 -r ${VERSION} -c "Proxmox Documentation"|gzip -c9 >$@
15
16 %.5.gz: %.5.pod
17 cat $<|pod2man -n $* -s 5 -r ${VERSION} -c "Proxmox Documentation"|gzip -c9 >$@
18
19 %.1.pod: %
20 perl -I.. ./$* printmanpod > $@
21
22 datacenter.cfg.5.pod: Cluster.pm gen-datacenter-pod.pl
23 perl -I.. ./gen-datacenter-pod.pl > $@
24
25 #datacenter.cfg.5.gz: Cluster.pm gen-datacenter-pod.pl
26 # ./gen-datacenter-pod.pl|pod2man -n datacenter.cfg -s 5 -r ${VERSION} -c #"Proxmox Documentation"|gzip -c9 >$@
27
28
29 pod_DATA = pvecm.1.pod datacenter.cfg.5.pod
30 poddir = /usr/share/doc/pve-cluster/pod
31
32 man1_MANS = pvecm.1.gz
33 man5_MANS = datacenter.cfg.5.gz
34
35 IPCC_so_SOURCES = IPCC.c ppport.h
36
37 pvelib_DATA = IPCC.pm Cluster.pm
38 pvelibdir = $(PERL_VENDORLIB)/PVE
39
40 install-exec-hook:
41 perl -I.. ./pvecm verifyapi
42
43 CLEANFILES = IPCC.c *~ *.1.gz *.5.gz *.pod