mirror of
ssh://git.janware.com/srv/git/janware/proj/jw-pkg
synced 2026-01-15 03:53:32 +01:00
make, scripts: Re-add files necessary for building ytools
Re-add everthing needed for building and packaging ytools. This is a big commit, 2002 lines of code. It mostly consists of C/C++ machinery, plus some documentation-related stuff. Signed-off-by: Jan Lindemann <jan@janware.com>
This commit is contained in:
parent
0a9340af49
commit
bf16c6714b
27 changed files with 1975 additions and 0 deletions
34
make/std-tools.mk
Normal file
34
make/std-tools.mk
Normal file
|
|
@ -0,0 +1,34 @@
|
|||
include $(JWBDIR)/make/defs.mk
|
||||
|
||||
PROFILE_SH = profile-$(PROJECT).sh
|
||||
|
||||
all: $(PROFILE_SH)
|
||||
clean: clean.std-tools
|
||||
install: $(PROFILE_SH) install.std-tools.done
|
||||
distclean: clean
|
||||
|
||||
$(PROFILE_SH): $(LOCAL_MKFILES)
|
||||
echo '#!/bin/sh' > $@.tmp
|
||||
echo "if [ \"\$$PATH\" ]; then" >> $@.tmp
|
||||
echo " PATH=\$$PATH:$(INSTALL_EXEDIR)" >> $@.tmp
|
||||
echo "else" >> $@.tmp
|
||||
echo " PATH=$(INSTALL_EXEDIR)" >> $@.tmp
|
||||
echo "fi" >> $@.tmp
|
||||
echo "if [ \"\$$LD_LIBRARY_PATH\" ]; then" >> $@.tmp
|
||||
echo " LD_LIBRARY_PATH=\$$LD_LIBRARY_PATH:$(INSTALL_LIBDIR)" >> $@.tmp
|
||||
echo "else" >> $@.tmp
|
||||
echo " LD_LIBRARY_PATH=$(INSTALL_LIBDIR)" >> $@.tmp
|
||||
echo "fi" >> $@.tmp
|
||||
echo "export PATH LD_LIBRARY_PATH" >> $@.tmp
|
||||
mv $@.tmp $@
|
||||
|
||||
clean.std-tools:
|
||||
$(RM) -f $(PROFILE_SH) *.done
|
||||
|
||||
install.std-tools.done: install.std-dir.done
|
||||
$(INSTALL) -p -o $(PROFILEOWNER) -g $(PROFILEGROUP) -m $(PROFILEMODE) $(PROFILE_SH) $(PROFILE_DIR)
|
||||
touch $@
|
||||
|
||||
install.std-dir.done:
|
||||
mkdir -p $(PROFILE_DIR)
|
||||
touch $@
|
||||
Loading…
Add table
Add a link
Reference in a new issue