02acdb689545fd28a3e708a8f9cf3cd726834eaa
[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         RESTEnvironment.pm      \
11         CpuSet.pm               \
12         Daemon.pm               \
13         SectionConfig.pm        \
14         Network.pm              \
15         ProcFSTools.pm          \
16         CLIHandler.pm           \
17         RESTHandler.pm          \
18         JSONSchema.pm           \
19         SafeSyslog.pm           \
20         AtomicFile.pm           \
21         INotify.pm              \
22         Tools.pm                \
23         AbstractMigrate.pm      \
24         Exception.pm            \
25         AbstractConfig.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