make: Re-add files necessary for building jw-python

Re-add everything necessary for building and packaging jw-python.

ldlibpath.mk is not strictly necessary, but might be with other
Python packages backed by compiled C-code, so leave it in.

Signed-off-by: Jan Lindemann <jan@janware.com>
This commit is contained in:
Jan Lindemann 2025-11-13 17:27:14 +01:00
commit 0a9340af49
7 changed files with 261 additions and 0 deletions

28
make/cleandirs.mk Normal file
View file

@ -0,0 +1,28 @@
.NOTPARALLEL:
all: do.all
install: do.install
clean: do.clean
distclean: do.distclean
include $(JWBDIR)/make/defs.mk
SUBDIRS ?= $(FIND_SUBDIRS)
ifeq ($(FORCE_REBUILD_CLEANDIRS),true)
SUBDIRS_ALL = $(SUBDIRS)
SUBDIRS_INSTALL = $(SUBDIRS)
else
SUBDIRS_ALL ?=
SUBDIRS_INSTALL ?=
endif
do.all:
set -e; for d in $(SUBDIRS_ALL); do make -wC $$d $*; done
do.install:
set -e; for d in $(SUBDIRS_INSTALL); do make -wC $$d $*; done
do.%:
set -e; for d in $(SUBDIRS); do make -wC $$d $*; done
$(RM) -rf $(TEXTCLEAN) $(CLEAN) *.done *~ .*.swp *.tmp core *.rep dirs-*.done