mirror of
https://git.proxmox.com/git/proxmox-perl-rs
synced 2025-07-25 07:01:53 +00:00
37 lines
1.1 KiB
Makefile
37 lines
1.1 KiB
Makefile
include /usr/share/dpkg/default.mk
|
|
|
|
PACKAGE=libproxmox-rs-perl
|
|
|
|
ARCH:=$(shell dpkg-architecture -qDEB_BUILD_ARCH)
|
|
export GITVERSION:=$(shell git rev-parse HEAD)
|
|
|
|
PERL_INSTALLVENDORARCH != perl -MConfig -e 'print $$Config{installvendorarch};'
|
|
PERL_INSTALLVENDORLIB != perl -MConfig -e 'print $$Config{installvendorlib};'
|
|
|
|
DEB=${PACKAGE}_${DEB_VERSION}_${ARCH}.deb
|
|
|
|
DESTDIR=
|
|
|
|
# Point to any generated pm file (Proxmox/ dir is already present in this package)
|
|
Proxmox/RS/CalendarEvent.pm: ../scripts/genpackage.pl
|
|
perl ../scripts/genpackage.pl Common \
|
|
Proxmox::RS::APT::Repositories \
|
|
Proxmox::RS::CalendarEvent \
|
|
Proxmox::RS::Subscription
|
|
|
|
all: Proxmox/RS/CalendarEvent.pm
|
|
true
|
|
|
|
.PHONY: install
|
|
install: Proxmox/RS/CalendarEvent.pm
|
|
install -d -m755 $(DESTDIR)$(PERL_INSTALLVENDORLIB)
|
|
find PVE \! -type d -print -exec install -Dm644 '{}' $(DESTDIR)$(PERL_INSTALLVENDORLIB)'/{}' ';'
|
|
find Proxmox \! -type d -print -exec install -Dm644 '{}' $(DESTDIR)$(PERL_INSTALLVENDORLIB)'/{}' ';'
|
|
rm $(DESTDIR)$(PERL_INSTALLVENDORLIB)'/Proxmox/Lib/template.pm'
|
|
|
|
.PHONY: deb
|
|
deb: $(DEB)
|
|
$(DEB): build
|
|
cd build; dpkg-buildpackage -b -us -uc --no-pre-clean
|
|
lintian $(DEBS)
|