diff options
author | Jörg Frings-Fürst <debian@jff.email> | 2025-03-19 15:41:36 +0100 |
---|---|---|
committer | Jörg Frings-Fürst <debian@jff.email> | 2025-03-19 15:41:36 +0100 |
commit | 018e1ba581ec6f01f069a45ec4cf89f152b44d5f (patch) | |
tree | 0e7dda4bb693a6714066fbe5efcd2f24ff7c1a65 /build-0.3/install/install-functions.make | |
parent | 1c188393cd2e271ed2581471b601fb5960777fd8 (diff) |
remerge
Diffstat (limited to 'build-0.3/install/install-functions.make')
-rw-r--r-- | build-0.3/install/install-functions.make | 37 |
1 files changed, 37 insertions, 0 deletions
diff --git a/build-0.3/install/install-functions.make b/build-0.3/install/install-functions.make new file mode 100644 index 0000000..22f69a7 --- /dev/null +++ b/build-0.3/install/install-functions.make @@ -0,0 +1,37 @@ +# file : build/install/install-functions.make +# copyright : Copyright (c) 2004-2012 Code Synthesis Tools CC +# license : GNU GPL v2; see accompanying LICENSE file + +#@@ could just call it functions.make +# + +$(out_base)/%: install-exec = \ +$(call message,,$(install_dir) $(dir $2))$(literal_newline)\ +$(literal_tab)$(call message,install $2,$(install_exec) $1 $2) + + +$(out_base)/%: install-lib = \ +$(call message,install $2,$(install_dir) $(dir $2))$(literal_newline)\ +$(literal_tab)$(call message,,$(value $(if $(patsubst %.so,,$(shell\ + sed -e '1q' <$1)),install_data,install_exec)) $(shell sed -e '1q' <$1) $2) + + +$(out_base)/%: install-data = \ +$(call message,install $2,$(install_dir) $(dir $2))$(literal_newline)\ +$(literal_tab)$(call message,,$(install_data) $1 $2) + + +$(out_base)/%: install-dir = \ +$(call message,install $2/,find -L $1 $3 -type f -print \ +| xargs -n 1 $(bld_root)/run-if-arg dirname \ +| sort -u \ +| sed -e 's%$1\(.*\)%$2/\1%' \ +| xargs -n 1 $(bld_root)/run-if-arg "$(install_dir)")$(literal_newline)\ +$(literal_tab)$(call message,,\ +find -L $1 $3 -type f ! -perm -100 -print \ +| sed -e 's%$1\(.*\)%$1/\1 $2/\1%' \ +| xargs -n 2 $(bld_root)/run-if-arg "$(install_data)")$(literal_newline)\ +$(literal_tab)$(call message,,\ +find -L $1 $3 -type f -perm -100 -print \ +| sed -e 's%$1\(.*\)%$1/\1 $2/\1%' \ +| xargs -n 2 $(bld_root)/run-if-arg "$(install_exec)") |