PrawnOS-nonfree/filesystem/packages/makefile
Hal Emmerich 4d4145f16f Inital rework/reorganization
more to do
2020-06-21 02:28:45 -05:00

30 lines
648 B
Makefile

PRAWNOS_ROOT := $(shell git rev-parse --show-toplevel)
include $(PRAWNOS_ROOT)/scripts/BuildScripts/BuildCommon.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)