02f1f5605097d9411f9ed640a853f079a435b1af
[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         ACME.pm \
11         ACME/Challenge.pm \
12         ACME/StandAlone.pm \
13         AtomicFile.pm \
14         Certificate.pm \
15         CLIFormatter.pm \
16         CLIHandler.pm \
17         CalendarEvent.pm \
18         CpuSet.pm \
19         Daemon.pm \
20         Exception.pm \
21         INotify.pm \
22         JSONSchema.pm \
23         Network.pm \
24         OTP.pm \
25         PTY.pm \
26         ProcFSTools.pm \
27         RESTEnvironment.pm \
28         RESTHandler.pm \
29         SafeSyslog.pm \
30         SectionConfig.pm \
31         Subscription.pm \
32         Syscall.pm \
33         SysFSTools.pm \
34         Systemd.pm \
35         Ticket.pm \
36         Tools.pm
37
38 all:
39
40 .PHONY: install
41 install:
42         install -d -m 0755 ${DESTDIR}${PERLDIR}/PVE
43         install -d -m 0755 ${DESTDIR}${PERLDIR}/PVE/ACME
44         for i in ${LIB_SOURCES}; do install -D -m 0644 PVE/$$i ${DESTDIR}${PERLDIR}/PVE/$$i; done
45
46
47 .PHONY: clean
48 clean:  
49         rm -rf *~ 
50
51 .PHONY: distclean
52 distclean: clean
53