2020-06-30 05:39:56 +02:00
|
|
|
.DEFAULT_GOAL := default
|
2020-06-13 03:23:04 +02:00
|
|
|
#import all shared make vars
|
|
|
|
PRAWNOS_ROOT := $(shell git rev-parse --show-toplevel)
|
2020-06-21 01:44:09 +02:00
|
|
|
include $(PRAWNOS_ROOT)/scripts/BuildScripts/BuildCommon.mk
|
2020-05-27 01:02:03 +02:00
|
|
|
|
2020-06-17 08:51:39 +02:00
|
|
|
#package specific vars
|
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-17 08:51:39 +02:00
|
|
|
PACKAGE_LOCAL_BUILD_DEPS :=
|
|
|
|
|
2020-06-30 05:39:56 +02:00
|
|
|
default: $(PACKAGE_NAME_DEB)
|
|
|
|
|
2020-06-15 23:27:34 +02:00
|
|
|
$(PACKAGE_NAME_DEB):
|
2020-06-21 01:44:09 +02:00
|
|
|
$(PRAWNOS_PACKAGE_SCRIPTS_PBUILD) $(PACKAGE_NAME_DEB) \
|
2020-06-17 08:51:39 +02:00
|
|
|
$(PBUILDER_VARS) \
|
|
|
|
$(PRAWNOS_LOCAL_APT_VARS) \
|
|
|
|
$(PACKAGE_LOCAL_BUILD_DEPS)
|
2020-05-27 01:02:03 +02:00
|
|
|
|
|
|
|
.PHONY: clean
|
|
|
|
clean:
|
2020-06-19 01:15:37 +02:00
|
|
|
rm -rf $(PRAWNOS_LOCAL_APT_REPO)/$(PACKAGE_NAME_DEB)
|
2020-05-27 01:02:03 +02:00
|
|
|
rm -rf *.upload
|
|
|
|
rm -rf *.deb
|
|
|
|
rm -rf *.changes
|
|
|
|
rm -rf *.dsc
|
|
|
|
rm -rf *.build
|
2020-06-17 08:51:39 +02:00
|
|
|
rm -rf *.diff.gz
|
2020-05-27 01:02:03 +02:00
|
|
|
rm -rf *.debian.tar.xz
|
|
|
|
rm -rf *.buildinfo
|
|
|
|
|
2020-06-14 21:07:29 +02:00
|
|
|
install:
|
2020-06-21 01:44:09 +02:00
|
|
|
$(PRAWNOS_PACKAGE_SCRIPTS_INSTALL) $(PACKAGE_NAME_DEB) $(INSTALL_TARGET)
|
2020-06-17 08:51:39 +02:00
|
|
|
|
|
|
|
.PHONY: upload
|
2020-06-19 01:15:37 +02:00
|
|
|
upload:
|
2020-06-21 01:44:09 +02:00
|
|
|
$(PRAWNOS_PACKAGE_SCRIPTS_UPLOAD)
|
2020-05-27 01:02:03 +02:00
|
|
|
|