PrawnOS-nonfree/filesystem/packages/makefile

30 lines
648 B
Makefile
Raw Permalink Normal View History

2020-06-13 03:23:04 +02:00
PRAWNOS_ROOT := $(shell git rev-parse --show-toplevel)
include $(PRAWNOS_ROOT)/scripts/BuildScripts/BuildCommon.mk
2020-06-13 03:23:04 +02:00
2020-05-28 03:46:59 +02:00
SUBDIRS = $(shell ls -d */)
all:
2020-05-28 19:06:52 +02:00
for dir in $(SUBDIRS) ; do \
make -C $$dir ; \
done
2020-05-28 03:46:59 +02:00
clean:
2020-05-28 19:06:52 +02:00
for dir in $(SUBDIRS) ; do \
make clean -C $$dir ; \
2020-06-13 03:23:04 +02:00
done
2020-06-14 21:07:29 +02:00
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)