]>
Commit | Line | Data |
---|---|---|
beb651ee DM |
1 | include ../defines.mk |
2 | ||
8dccd400 | 3 | SUBDIRS=API2 Status CLI Service |
beb651ee DM |
4 | |
5 | PERLSOURCE = \ | |
ccfd6ea6 | 6 | CertHelpers.pm \ |
beb651ee | 7 | API2.pm \ |
19a6b9f1 | 8 | API2Tools.pm \ |
57f93db1 | 9 | HTTPServer.pm \ |
c9164975 | 10 | APLInfo.pm \ |
53f13052 | 11 | AutoBalloon.pm \ |
a34866f0 | 12 | CephTools.pm \ |
2f7faeed | 13 | Report.pm \ |
c4f78bb7 | 14 | NodeConfig.pm \ |
e9b01ea5 | 15 | VZDump.pm |
beb651ee DM |
16 | |
17 | all: pvecfg.pm ${SUBDIRS} | |
1b9008bf | 18 | set -e && for i in ${SUBDIRS}; do ${MAKE} -C $$i; done |
beb651ee | 19 | |
2944eea8 | 20 | REPOID=$(shell git rev-parse --short=8 HEAD) |
e38a88ca | 21 | |
beb651ee | 22 | pvecfg.pm: pvecfg.pm.in |
8747a9ec | 23 | sed -e s/@VERSION@/${VERSION}/ -e s/@PACKAGERELEASE@/${PACKAGERELEASE}/ -e s/@PACKAGE@/${PACKAGE}/ -e s/@REPOID@/${REPOID}/ $< >$@.tmp |
e38a88ca | 24 | mv $@.tmp $@ |
beb651ee DM |
25 | |
26 | %: | |
27 | set -e && for i in ${SUBDIRS}; do ${MAKE} -C $$i $@; done | |
28 | ||
beb651ee DM |
29 | .PHONY: clean |
30 | clean: | |
31 | set -e && for i in ${SUBDIRS}; do ${MAKE} -C $$i $@; done | |
e38a88ca | 32 | rm -rf *~ pvecfg.pm pvecfg.pm.tmp |
beb651ee DM |
33 | |
34 | .PHONY: install | |
35 | install: pvecfg.pm ${PERLSOURCE} | |
36 | install -d ${PERLLIBDIR}/PVE | |
37 | install -m 0644 pvecfg.pm ${PERLLIBDIR}/PVE/ | |
38 | install -m 0644 ${PERLSOURCE} ${PERLLIBDIR}/PVE/ | |
39 | set -e && for i in ${SUBDIRS}; do ${MAKE} -C $$i $@; done |