PrawnOS-nonfree/packages/filesystem/xsecurelock/makefile

40 lines
906 B
Makefile
Raw Normal View History

2020-06-13 03:23:04 +02:00
#import all shared make vars
PRAWNOS_ROOT := $(shell git rev-parse --show-toplevel)
include $(PRAWNOS_ROOT)/scripts/common.mk
2020-06-13 03:23:04 +02:00
VERSION := $(shell cd src/; dpkg-parsechangelog --show-field Version)
2020-06-15 23:27:34 +02:00
PACKAGE_NAME := xsecurelock_$(VERSION)_armhf
PACKAGE_NAME_DEB := $(PACKAGE_NAME).deb
2020-06-13 03:23:04 +02:00
2020-06-15 23:27:34 +02:00
$(PACKAGE_NAME_DEB):
2020-06-13 03:23:04 +02:00
@echo Building $@
cd src/; pdebuild --configfile $(PBUILDER_RC) \
--buildresult .. \
-- \
--basetgz $(PBUILDER_CHROOT) \
.PHONY: clean
clean:
rm -rf *.upload
rm -rf *.deb
rm -rf *.changes
rm -rf *.dsc
rm -rf *.build
rm -rf *.debian.tar.xz
rm -rf *.buildinfo
.PHONY: upload
upload:
dput deb.prawnos.com *.changes
2020-06-14 21:07:29 +02:00
install:
ifndef INSTALL_TARGET
$(error INSTALL_TARGET is not set)
endif
2020-06-15 23:27:34 +02:00
ifeq ("$(wildcard $(PACKAGE_NAME_DEB))","")
$(error $(PACKAGE_NAME_DEB) must be built first)
endif
cp $(PACKAGE_NAME_DEB) $(INSTALL_TARGET)