mirror of
ssh://git.janware.com/srv/git/janware/proj/jw-pkg
synced 2026-01-25 15:03:55 +01:00
profile.mk: Add automatic default profile generation
Signed-off-by: Jan Lindemann <jan@janware.com>
This commit is contained in:
parent
14e76bbddd
commit
97e360e1a1
1 changed files with 11 additions and 2 deletions
|
|
@ -6,10 +6,19 @@
|
||||||
EXE_SH =
|
EXE_SH =
|
||||||
PROFILE ?= $(wildcard *.sh)
|
PROFILE ?= $(wildcard *.sh)
|
||||||
|
|
||||||
|
ifeq ($(PROFILE),)
|
||||||
|
PROFILE = path-$(PROJECT).sh
|
||||||
|
endif
|
||||||
|
|
||||||
include $(MODDIR)/make/defs.mk
|
include $(MODDIR)/make/defs.mk
|
||||||
include $(MODDIR)/make/rules.mk
|
include $(MODDIR)/make/rules.mk
|
||||||
|
|
||||||
all:
|
all: $(PROFILE)
|
||||||
install: install_files_PROFILE
|
install: install_files_PROFILE
|
||||||
clean: allclean localclean doneclean textclean
|
clean: allclean localclean doneclean textclean clean.profile
|
||||||
|
|
||||||
|
path-%.sh:
|
||||||
|
@echo "export \$$PATH=\$$PATH:$(INSTALL_EXEDIR)" > $@.tmp
|
||||||
|
mv $@.tmp $@
|
||||||
|
clean.profile:
|
||||||
|
/bin/bash $(MOD_SCRIPT_DIR)/scm.sh clean -f $(PROFILE)
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue