finalize the package build system

This commit is contained in:
Hal Emmerich 2020-06-14 14:07:29 -05:00
parent 1c4edc13b7
commit 721907f3d3
7 changed files with 50 additions and 0 deletions

View File

@ -69,6 +69,10 @@ clean_basefs:
clean_initramfs: clean_initramfs:
rm -r build/PrawnOS-initramfs.cpio.gz rm -r build/PrawnOS-initramfs.cpio.gz
.PHONY: clean_packages
packages:
cd packages && $(MAKE) clean
.PHONY: clean_pbuilder .PHONY: clean_pbuilder
clean_pbuilder: clean_pbuilder:
rm -r build/prawnos-pbuilder-armhf-base.tgz rm -r build/prawnos-pbuilder-armhf-base.tgz
@ -81,6 +85,7 @@ clean_all:
$(MAKE) clean_basefs $(MAKE) clean_basefs
$(MAKE) clean_initramfs $(MAKE) clean_initramfs
$(MAKE) clean_pbuilder $(MAKE) clean_pbuilder
$(MAKE) clean_packages
#:::::::::::::::::::::::::::::: premake prep :::::::::::::::::::::::::::::: #:::::::::::::::::::::::::::::: premake prep ::::::::::::::::::::::::::::::
.PHONY: build_dirs .PHONY: build_dirs
@ -124,6 +129,9 @@ filesystem:
packages: packages:
cd packages && $(MAKE) cd packages && $(MAKE)
.PHONY: packages_install
install_packages:
cd packages && $(MAKE) install INSTALL_TARGET=/tmp/
#:::::::::::::::::::::::::::::: image management :::::::::::::::::::::::::: #:::::::::::::::::::::::::::::: image management ::::::::::::::::::::::::::
.PHONY: kernel_inject .PHONY: kernel_inject

View File

@ -1,8 +1,10 @@
#import all shared make vars #import all shared make vars
PRAWNOS_ROOT := $(shell git rev-parse --show-toplevel) PRAWNOS_ROOT := $(shell git rev-parse --show-toplevel)
include $(PRAWNOS_ROOT)/scripts/common.mk include $(PRAWNOS_ROOT)/scripts/common.mk
VERSION := $(shell cd src/; dpkg-parsechangelog --show-field Version) VERSION := $(shell cd src/; dpkg-parsechangelog --show-field Version)
EMPTY := ""
font-source-code-pro_$(VERSION)_all.deb: font-source-code-pro_$(VERSION)_all.deb:
@echo Building $@ @echo Building $@
@ -17,3 +19,9 @@ clean:
.PHONY: upload .PHONY: upload
upload: upload:
dput deb.prawnos.com *.changes dput deb.prawnos.com *.changes
install:
ifndef INSTALL_TARGET
$(error INSTALL_TARGET is not set)
endif
cp font-source-code-pro_$(VERSION)_all.deb $(INSTALL_TARGET)

View File

@ -13,3 +13,9 @@ clean:
for dir in $(SUBDIRS) ; do \ for dir in $(SUBDIRS) ; do \
make clean -C $$dir ; \ make clean -C $$dir ; \
done done
install:
$(info filesystem install target is $(INSTALL_TARGET))
for dir in $(SUBDIRS) ; do \
make install INSTALL_TARGET=$(INSTALL_TARGET) -C $$dir ; \
done

View File

@ -26,4 +26,9 @@ clean:
upload: upload:
dput deb.prawnos.com *.changes dput deb.prawnos.com *.changes
install:
ifndef INSTALL_TARGET
$(error INSTALL_TARGET is not set)
endif
cp xsecurelock_$(VERSION)_armhf.deb $(INSTALL_TARGET)

View File

@ -3,3 +3,11 @@ include $(PRAWNOS_ROOT)/scripts/common.mk
all: all:
@echo TODO @echo TODO
clean:
@echo TODO
install:
@echo TODO

View File

@ -3,3 +3,11 @@ include $(PRAWNOS_ROOT)/scripts/common.mk
all: all:
@echo TODO @echo TODO
clean:
@echo TODO
install:
@echo TODO

View File

@ -13,3 +13,10 @@ clean:
for dir in $(SUBDIRS) ; do \ for dir in $(SUBDIRS) ; do \
make clean -C $$dir ; \ make clean -C $$dir ; \
done done
install:
@echo packages install target is $(INSTALL_TARGET)
for dir in $(SUBDIRS) ; do \
make install INSTALL_TARGET=$(INSTALL_TARGET) -C $$dir ; \
done