]>
Commit | Line | Data |
---|---|---|
a36b87b1 | 1 | PACKAGE=pmg-gui |
8b0b6db4 | 2 | PKGVER=1.0 |
2ce74665 | 3 | PKGREL=44 |
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 | ||
43f0b189 | 20 | CSSFILES = ext6-pmg.css ext6-pmg-mobile.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 | ||
43f0b189 DC |
34 | js/pmgmanagerlib-mobile.js: |
35 | make -C js pmgmanagerlib-mobile.js | |
36 | ||
37 | install: pmg-index.html.tt js/pmgmanagerlib.js js/pmgmanagerlib-mobile.js | |
8b0b6db4 DM |
38 | install -d -m 755 ${WWWCSSDIR} |
39 | install -d -m 755 ${WWWIMAGESDIR} | |
40 | install -d -m 755 ${WWWJSDIR} | |
d6ea28a5 | 41 | install -m 0644 pmg-index.html.tt ${WWWBASEDIR} |
43f0b189 | 42 | install -m 0644 pmg-mobile-index.html.tt ${WWWBASEDIR} |
fe81f069 | 43 | install -m 0644 js/pmgmanagerlib.js ${WWWJSDIR} |
43f0b189 | 44 | install -m 0644 js/pmgmanagerlib-mobile.js ${WWWJSDIR} |
fe81f069 DM |
45 | for i in ${IMAGES}; do install -m 0644 images/$$i ${WWWIMAGESDIR}; done |
46 | for i in ${CSSFILES}; do install -m 0644 css/$$i ${WWWCSSDIR}; done | |
8b0b6db4 DM |
47 | |
48 | .PHONY: upload | |
49 | upload: ${DEB} | |
5b7319bc | 50 | tar cf - ${DEB} | ssh -X repoman@repo.proxmox.com -- upload --product pmg --dist stretch |
8b0b6db4 DM |
51 | |
52 | distclean: clean | |
53 | rm -f examples/simple-demo.pem | |
54 | ||
55 | clean: | |
fe81f069 DM |
56 | make -C js clean |
57 | rm -rf ./build *.deb *.changes *.buildinfo | |
8b0b6db4 DM |
58 | find . -name '*~' -exec rm {} ';' |
59 | ||
60 | .PHONY: dinstall | |
61 | dinstall: ${DEB} | |
62 | dpkg -i ${DEB} |