a45effbb00ba24bc5f9f265a8879174d1e0bce2a
[pve-common.git] / src / Makefile
1
2 PREFIX=/usr
3 BINDIR=${PREFIX}/bin
4 MANDIR=${PREFIX}/share/man
5 DOCDIR=${PREFIX}/share/doc
6 MAN1DIR=${MANDIR}/man1/
7 PERLDIR=${PREFIX}/share/perl5
8
9 LIB_SOURCES=                    \
10         OTP.pm                  \
11         Ticket.pm               \
12         RESTEnvironment.pm      \
13         CpuSet.pm               \
14         Daemon.pm               \
15         SectionConfig.pm        \
16         Network.pm              \
17         ProcFSTools.pm          \
18         CLIHandler.pm           \
19         RESTHandler.pm          \
20         JSONSchema.pm           \
21         SafeSyslog.pm           \
22         AtomicFile.pm           \
23         INotify.pm              \
24         Tools.pm                \
25         Exception.pm
26
27 all:
28
29 .PHONY: install
30 install:
31         install -d -m 0755 ${DESTDIR}${PERLDIR}/PVE
32         for i in ${LIB_SOURCES}; do install -D -m 0644 PVE/$$i ${DESTDIR}${PERLDIR}/PVE/$$i; done
33
34
35 .PHONY: clean
36 clean:  
37         rm -rf *~ 
38
39 .PHONY: distclean
40 distclean: clean
41