e6de656805
This simply uses the new one as a base in order to help getting the packages setup initially. Signed-off-by: Wolfgang Bumiller <w.bumiller@proxmox.com>
43 lines
934 B
Makefile
43 lines
934 B
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=
|
|
|
|
PM_DIRS := \
|
|
PVE/RS \
|
|
Proxmox/Lib \
|
|
Proxmox/RS
|
|
|
|
PM_FILES := \
|
|
PVE/RS/CalendarEvent.pm \
|
|
Proxmox/Lib/Common.pm \
|
|
Proxmox/RS/CalendarEvent.pm
|
|
|
|
all:
|
|
true
|
|
|
|
.PHONY: install
|
|
install:
|
|
install -d -m755 $(DESTDIR)$(PERL_INSTALLVENDORLIB)
|
|
set -e && for i in $(PM_DIRS); do \
|
|
install -d -m755 $(DESTDIR)$(PERL_INSTALLVENDORLIB)/$$i; \
|
|
done
|
|
set -e && for i in $(PM_FILES); do \
|
|
install -m644 $$i $(DESTDIR)$(PERL_INSTALLVENDORLIB)/$$i; \
|
|
done
|
|
|
|
.PHONY: deb
|
|
deb: $(DEB)
|
|
$(DEB): build
|
|
cd build; dpkg-buildpackage -b -us -uc --no-pre-clean
|
|
lintian $(DEBS)
|