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
30 lines
630 B
Makefile
30 lines
630 B
Makefile
PRAWNOS_ROOT := $(shell git rev-parse --show-toplevel)
|
|
include $(PRAWNOS_ROOT)/scripts/common.mk
|
|
|
|
SUBDIRS = $(shell ls -d */)
|
|
|
|
all:
|
|
for dir in $(SUBDIRS) ; do \
|
|
make -C $$dir ; \
|
|
done
|
|
|
|
|
|
clean:
|
|
for dir in $(SUBDIRS) ; do \
|
|
make clean -C $$dir ; \
|
|
done
|
|
|
|
install:
|
|
$(info filesystem install target is $(INSTALL_TARGET))
|
|
for dir in $(SUBDIRS) ; do \
|
|
make install INSTALL_TARGET=$(INSTALL_TARGET) -C $$dir ; \
|
|
done
|
|
|
|
#this allows a makefile or script to specifically build one filesystem package
|
|
.PHONY: build_package
|
|
build_package:
|
|
ifndef BUILD_PACKAGE
|
|
$(error BUILD_PACKAGE is not set)
|
|
endif
|
|
make -C $(BUILD_PACKAGE)
|