c0f14421c1
rework package build system (again) for greater ease of maintenance and flexability add creation of a local apt repo for package building in pbuilder add an apt cache to debootstrap to speed up build times and reduce network load package mosys more build system improvements to come
34 lines
945 B
Makefile
34 lines
945 B
Makefile
#import all shared make vars
|
|
PRAWNOS_ROOT := $(shell git rev-parse --show-toplevel)
|
|
include $(PRAWNOS_ROOT)/scripts/common.mk
|
|
|
|
#package specific vars
|
|
VERSION := $(shell cd src/; dpkg-parsechangelog --show-field Version)
|
|
PACKAGE_NAME := mosys_$(VERSION)_armhf
|
|
PACKAGE_NAME_DEB := $(PACKAGE_NAME).deb
|
|
|
|
PACKAGE_LOCAL_BUILD_DEPS := flashmap
|
|
|
|
$(PACKAGE_NAME_DEB):
|
|
$(PRAWNOS_PACKAGE_SCRIPTS_PBUILD_PACKAGE) $(PACKAGE_NAME_DEB) \
|
|
$(PBUILDER_VARS) \
|
|
$(PRAWNOS_LOCAL_APT_VARS) \
|
|
$(PACKAGE_LOCAL_BUILD_DEPS)
|
|
|
|
.PHONY: clean
|
|
clean:
|
|
rm -rf *.upload
|
|
rm -rf *.deb
|
|
rm -rf *.changes
|
|
rm -rf *.dsc
|
|
rm -rf *.build
|
|
rm -rf *.diff.gz
|
|
rm -rf *.debian.tar.xz
|
|
rm -rf *.buildinfo
|
|
|
|
install:
|
|
$(PRAWNOS_PACKAGE_SCRIPTS_INSTALL_PACKAGE) $(PACKAGE_NAME_DEB) $(INSTALL_TARGET)
|
|
|
|
.PHONY: upload
|
|
$(PRAWNOS_PACKAGE_SCRIPTS_UPLOAD_PACKAGE)
|