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

26
make/profile.mk Normal file
View file

@ -0,0 +1,26 @@
# generic utility modules
# (c) 2001 jannet it services
# contact@jannet.de
# $Id$
PATH_PROFILE ?= path-$(PROJECT).sh
EXE_SH =
ifeq ($(PROFILE),)
PROFILE = $(PATH_PROFILE)
endif
PROFILE += $(filter-out $(PATH_PROFILE),$(wildcard *.sh))
include $(JWBDIR)/make/defs.mk
include $(JWBDIR)/make/rules.mk
all: $(PROFILE)
install: install_files_PROFILE
clean: allclean localclean doneclean textclean clean.profile
path-%.sh:
@echo "export PATH=\$$PATH:$(INSTALL_EXEDIR)" > $@.tmp
mv $@.tmp $@
clean.profile:
/bin/bash $(JWB_SCRIPT_DIR)/scm.sh clean -f $(PROFILE)