]>
Commit | Line | Data |
---|---|---|
62744365 TL |
1 | include /usr/share/dpkg/pkg-info.mk |
2 | ||
a36b87b1 | 3 | PACKAGE=pmg-gui |
8b0b6db4 | 4 | |
62744365 | 5 | DEB=${PACKAGE}_${DEB_VERSION_UPSTREAM_REVISION}_all.deb |
8b0b6db4 DM |
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 | |
0391bb7a DC |
22 | export DEB_VERSION_UPSTREAM_REVISION |
23 | ||
8b0b6db4 DM |
24 | all: |
25 | ||
26 | .PHONY: deb | |
27 | deb ${DEB}: | |
28 | rm -rf build | |
29 | rsync -a * build | |
30 | cd build; dpkg-buildpackage -b -us -uc | |
31 | lintian ${DEB} | |
32 | ||
fe81f069 DM |
33 | js/pmgmanagerlib.js: |
34 | make -C js pmgmanagerlib.js | |
35 | ||
43f0b189 DC |
36 | js/pmgmanagerlib-mobile.js: |
37 | make -C js pmgmanagerlib-mobile.js | |
38 | ||
39 | install: pmg-index.html.tt js/pmgmanagerlib.js js/pmgmanagerlib-mobile.js | |
8b0b6db4 DM |
40 | install -d -m 755 ${WWWCSSDIR} |
41 | install -d -m 755 ${WWWIMAGESDIR} | |
42 | install -d -m 755 ${WWWJSDIR} | |
d6ea28a5 | 43 | install -m 0644 pmg-index.html.tt ${WWWBASEDIR} |
43f0b189 | 44 | install -m 0644 pmg-mobile-index.html.tt ${WWWBASEDIR} |
fe81f069 | 45 | install -m 0644 js/pmgmanagerlib.js ${WWWJSDIR} |
43f0b189 | 46 | install -m 0644 js/pmgmanagerlib-mobile.js ${WWWJSDIR} |
fe81f069 DM |
47 | for i in ${IMAGES}; do install -m 0644 images/$$i ${WWWIMAGESDIR}; done |
48 | for i in ${CSSFILES}; do install -m 0644 css/$$i ${WWWCSSDIR}; done | |
8b0b6db4 DM |
49 | |
50 | .PHONY: upload | |
51 | upload: ${DEB} | |
5b7319bc | 52 | tar cf - ${DEB} | ssh -X repoman@repo.proxmox.com -- upload --product pmg --dist stretch |
8b0b6db4 DM |
53 | |
54 | distclean: clean | |
55 | rm -f examples/simple-demo.pem | |
56 | ||
57 | clean: | |
fe81f069 DM |
58 | make -C js clean |
59 | rm -rf ./build *.deb *.changes *.buildinfo | |
8b0b6db4 DM |
60 | find . -name '*~' -exec rm {} ';' |
61 | ||
62 | .PHONY: dinstall | |
63 | dinstall: ${DEB} | |
64 | dpkg -i ${DEB} |