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-05-22 23:36:40 +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:24:18 +02:00
|
|
|
PACKAGE_NAME := font-source-code-pro_$(VERSION)_all
|
|
|
|
PACKAGE_NAME_DEB := $(PACKAGE_NAME).deb
|
2020-06-13 03:23:04 +02:00
|
|
|
|
2020-06-15 23:24:18 +02:00
|
|
|
$(PACKAGE_NAME_DEB):
|
2020-06-13 03:23:04 +02:00
|
|
|
@echo Building $@
|
2020-05-22 22:37:12 +02:00
|
|
|
cd src/; debuild -us -uc
|
2020-06-17 08:51:39 +02:00
|
|
|
mkdir -p $PRAWNOS_LOCAL_APT_REPO
|
|
|
|
cp $PACKAGE_NAME $PRAWNOS_LOCAL_APT_REPO
|
2020-05-23 01:24:19 +02:00
|
|
|
|
|
|
|
.PHONY: clean
|
|
|
|
clean:
|
|
|
|
rm -rf *.upload
|
|
|
|
rm -rf *.deb
|
|
|
|
rm -rf *.changes
|
2020-06-15 23:24:18 +02:00
|
|
|
rm -rf *.dsc
|
|
|
|
rm -rf *.build
|
|
|
|
rm -rf *.diff.gz
|
|
|
|
rm -rf *.debian.tar.xz
|
|
|
|
rm -rf *.buildinfo
|
2020-05-23 01:24:19 +02:00
|
|
|
|
2020-06-14 21:07:29 +02:00
|
|
|
install:
|
2020-06-17 08:51:39 +02:00
|
|
|
$(PRAWNOS_PACKAGE_SCRIPTS_INSTALL_PACKAGE) $(PACKAGE_NAME_DEB) $(INSTALL_TARGET)
|
|
|
|
|
|
|
|
.PHONY: upload
|
|
|
|
$(PRAWNOS_PACKAGE_SCRIPTS_UPLOAD_PACKAGE)
|