]> git.proxmox.com Git - pve-installer.git/blob - Makefile
move common html file to html-common
[pve-installer.git] / Makefile
1 # achtung: also set release in proxinstall!
2 RELEASE=5.0
3
4 DEB=pve-installer_5.0-7_all.deb
5
6 INSTALLER_SOURCES= \
7 unconfigured.sh \
8 fake-start-stop-daemon \
9 policy-disable-rc.d \
10 interfaces \
11 proxlogo.png \
12 checktime \
13 xinitrc \
14 Xdefaults \
15 proxinstall
16
17 HTML_SOURCES=$(wildcard html/*.htm)
18 HTML_COMMON_SOURCES=$(wildcard html-common/*.htm) $(wildcard html-common/*.css) $(wildcard html-common/*.png)
19
20 all:
21
22 deb: ${DEB}
23 ${DEB}: ${INSTALLER_SOURCES} ${HTML_COMMON_SOURCES} ${HTML_SOURCES} Makefile html/Makefile
24 rsync -a * build
25 cd build; dpkg-buildpackage -b -us -uc
26 lintian -X man ${DEB}
27
28 .phony: install
29 install: ${INSTALLER_SOURCES} ${HTML_COMMON_SOURCES} ${HTML_SOURCES}
30 make -C html-common install
31 make -C html install
32 install -D -m 644 interfaces ${DESTDIR}/etc/network/interfaces
33 mkdir -p ${DESTDIR}/var/lib/dhcp3/
34 ln -s /tmp/resolv.conf.dhclient-new ${DESTDIR}/etc/resolv.conf
35 ln -s /tmp/resolv.conf.dhclient-new ${DESTDIR}/etc/resolv.conf.dhclient-new
36 install -D -m 755 fake-start-stop-daemon ${DESTDIR}/var/lib/pve-installer/fake-start-stop-daemon
37 install -D -m 755 policy-disable-rc.d ${DESTDIR}/var/lib/pve-installer/policy-disable-rc.d
38 install -D -m 755 unconfigured.sh ${DESTDIR}/sbin/unconfigured.sh
39 install -D -m 755 proxinstall ${DESTDIR}/usr/bin/proxinstall
40 install -D -m 755 checktime ${DESTDIR}/usr/bin/checktime
41 install -D -m 644 xinitrc ${DESTDIR}/.xinitrc
42 install -D -m 644 Xdefaults ${DESTDIR}/.Xdefaults
43
44 .phony: upload
45 upload: ${DEB}
46 tar cf - ${DEB} | ssh repoman@repo.proxmox.com -- upload --product pve --dist stretch
47
48 packages: /pve/${RELEASE}/install/pve.files
49 rm -rf packages packages.tmp; mkdir packages.tmp
50 for i in `cat $<`; do install -m 644 $$i packages.tmp/; done
51 mv packages.tmp packages
52
53 test.img:
54 dd if=/dev/zero of=test.img bs=2048 count=1M
55
56 check: packages test.img
57 G_SLICE=always-malloc ./proxinstall -t test.img
58
59 .phony: clean
60 clean:
61 make -C html-common clean
62 make -C html clean
63 rm -rf *~ *.deb target build packages packages.tmp test.img pve-final.pkglist *.buildinfo *.changes
64 find . -name '*~' -exec rm {} ';'