]>
Commit | Line | Data |
---|---|---|
a36b87b1 | 1 | PACKAGE=pmg-gui |
8b0b6db4 | 2 | PKGVER=1.0 |
60fc15a2 | 3 | PKGREL=39 |
8b0b6db4 DM |
4 | |
5 | DEB=${PACKAGE}_${PKGVER}-${PKGREL}_all.deb | |
6 | ||
7 | DESTDIR= | |
8 | ||
9 | DOCDIR=${DESTDIR}/usr/share/doc/${PACKAGE} | |
10 | ||
11 | WWWBASEDIR=${DESTDIR}/usr/share/javascript/${PACKAGE} | |
12 | WWWCSSDIR=${WWWBASEDIR}/css | |
13 | WWWIMAGESDIR=${WWWBASEDIR}/images | |
14 | WWWJSDIR=${WWWBASEDIR}/js | |
15 | ||
fe81f069 DM |
16 | IMAGES= \ |
17 | logo-128.png \ | |
18 | proxmox_logo.png | |
19 | ||
20 | CSSFILES = ext6-pmg.css | |
881a1154 | 21 | |
8b0b6db4 DM |
22 | all: |
23 | ||
24 | .PHONY: deb | |
25 | deb ${DEB}: | |
26 | rm -rf build | |
27 | rsync -a * build | |
28 | cd build; dpkg-buildpackage -b -us -uc | |
29 | lintian ${DEB} | |
30 | ||
fe81f069 DM |
31 | js/pmgmanagerlib.js: |
32 | make -C js pmgmanagerlib.js | |
33 | ||
d6ea28a5 | 34 | install: pmg-index.html.tt js/pmgmanagerlib.js |
8b0b6db4 DM |
35 | install -d -m 755 ${WWWCSSDIR} |
36 | install -d -m 755 ${WWWIMAGESDIR} | |
37 | install -d -m 755 ${WWWJSDIR} | |
d6ea28a5 | 38 | install -m 0644 pmg-index.html.tt ${WWWBASEDIR} |
fe81f069 DM |
39 | install -m 0644 js/pmgmanagerlib.js ${WWWJSDIR} |
40 | for i in ${IMAGES}; do install -m 0644 images/$$i ${WWWIMAGESDIR}; done | |
41 | for i in ${CSSFILES}; do install -m 0644 css/$$i ${WWWCSSDIR}; done | |
8b0b6db4 DM |
42 | |
43 | .PHONY: upload | |
44 | upload: ${DEB} | |
5b7319bc | 45 | tar cf - ${DEB} | ssh -X repoman@repo.proxmox.com -- upload --product pmg --dist stretch |
8b0b6db4 DM |
46 | |
47 | distclean: clean | |
48 | rm -f examples/simple-demo.pem | |
49 | ||
50 | clean: | |
fe81f069 DM |
51 | make -C js clean |
52 | rm -rf ./build *.deb *.changes *.buildinfo | |
8b0b6db4 DM |
53 | find . -name '*~' -exec rm {} ';' |
54 | ||
55 | .PHONY: dinstall | |
56 | dinstall: ${DEB} | |
57 | dpkg -i ${DEB} |