pve-manager/Makefile
Christoph Heiss d9d4cd1f90 configs: drop unused country.dat file from install
I could not find _any_ reference to it in current checkouts of ~every
Proxmox repository.

AFAICT this was copied from pve-installer in pve-installer commit

  f0583fd4e ("copied country.pl form pve-manager")

in 2017 and simply never dropped here afterwards, so it's an unused
leftover.

Signed-off-by: Christoph Heiss <c.heiss@proxmox.com>
Link: https://lore.proxmox.com/20250828103621.936206-1-c.heiss@proxmox.com
2025-08-28 23:23:39 +02:00

83 lines
2.2 KiB
Makefile

include /usr/share/dpkg/default.mk
include defines.mk
export PVERELEASE = $(shell echo $(DEB_VERSION_UPSTREAM) | cut -d. -f1-2)
export VERSION = $(DEB_VERSION_UPSTREAM_REVISION)
BUILDDIR = $(PACKAGE)-$(DEB_VERSION_UPSTREAM)
DSC=$(PACKAGE)_$(DEB_VERSION).dsc
DEB=$(PACKAGE)_$(DEB_VERSION)_all.deb
DESTDIR=
SUBDIRS = aplinfo PVE bin www services configs network-hooks test templates
all: $(SUBDIRS)
set -e && for i in $(SUBDIRS); do $(MAKE) -C $$i; done
.PHONY: tidy
tidy:
git ls-files ':*.p[ml]'| xargs -n4 -P0 proxmox-perltidy
$(MAKE) -C bin tidy
$(MAKE) -C www tidy
.PHONY: check
check: bin test www
$(MAKE) -C bin check
$(MAKE) -C test check
$(MAKE) -C www check
GITVERSION:=$(shell git rev-parse --short=16 HEAD)
$(BUILDDIR):
rm -rf $@ $@.tmp
mkdir $@.tmp
rsync -a * $@.tmp
echo "git clone git://git.proxmox.com/git/pve-manager.git\\ngit checkout $(GITVERSION)" > $@.tmp/debian/SOURCE
echo "REPOID_GENERATED=$(GITVERSION)" > $@.tmp/debian/rules.env
mv $@.tmp $@
.PHONY: deb dsc
deb: $(DEB)
$(DEB): $(BUILDDIR)
cd $(BUILDDIR); dpkg-buildpackage -b -us -uc
lintian $(DEB)
dsc:
rm -rf $(BUILDDIR) $(DSC)
$(MAKE) $(DSC)
lintian $(DSC)
$(DSC): $(BUILDDIR)
cd $(BUILDDIR); dpkg-buildpackage -S -us -uc -d
sbuild: $(DSC)
sbuild $<
.PHONY: upload
upload: UPLOAD_DIST ?= $(DEB_DISTRIBUTION)
upload: $(DEB)
tar cf - $(DEB) | ssh -X repoman@repo.proxmox.com upload --product pve --dist $(UPLOAD_DIST)
.PHONY: install
install: vzdump-hook-script.pl
install -d -m 0700 -o www-data -g www-data $(DESTDIR)/var/log/pveproxy
install -d $(DOCDIR)/examples
install -d $(DESTDIR)/var/lib/$(PACKAGE)
install -d $(DESTDIR)/var/lib/vz/images
install -d $(DESTDIR)/var/lib/vz/template/cache
install -d $(DESTDIR)/var/lib/vz/template/iso
install -m 0644 vzdump-hook-script.pl $(DOCDIR)/examples/vzdump-hook-script.pl
install -m 0644 spice-example-sh $(DOCDIR)/examples/spice-example-sh
set -e && for i in $(SUBDIRS); do $(MAKE) -C $$i $@; done
.PHONY: distclean
distclean: clean
.PHONY: clean
clean:
set -e && for i in $(SUBDIRS); do $(MAKE) -C $$i $@; done
rm -f $(PACKAGE)*.tar* *.deb *.dsc *.build *.buildinfo *.changes
rm -rf dest $(PACKAGE)-[0-9]*/
.PHONY: dinstall
dinstall: $(DEB)
dpkg -i $(DEB)