4 TOOLS_TARGET_DIR
= /usr
/tool
6 include $(dir $(lastword
$(MAKEFILE_LIST
)))/Makefile.lists.mk
8 SYMLINKS
= $(shell find
$(addprefix .
/,$(TOOLS
)) -maxdepth
0 -type l
-printf
"%f\n")
9 SYMLINK_TOOLS
= $(filter $(SYMLINKS
),$(TOOLS
))
10 NORMAL_TOOLS
= $(filter-out $(SYMLINK_TOOLS
),$(TOOLS
))
11 TOOLS_TARGET_FILES
= $(addprefix $(TOOLS_TARGET_DIR
)/,$(NORMAL_TOOLS
))
12 TOOLS_TARGET_SYMLINKS
= $(addprefix $(TOOLS_TARGET_DIR
)/,$(SYMLINK_TOOLS
))
17 @echo You may be interested in
: install-all
, install-tools
, list-tools
, manpages
22 $(TOOLS_TARGET_DIR
)/msg
: /etc
/bash_completion.d
/msg
23 $(TOOLS_TARGET_DIR
)/perl-repl
: /usr
/libexec
/perlshell
24 $(TOOLS_TARGET_DIR
)/rsync-semichroot
: /usr
/share
/doc
/tool
/rsync-semichroot.txt
25 $(TOOLS_TARGET_DIR
)/multithrottler
: /usr
/lib
/multithrottler
/Throttler.pm
27 /etc
/bash_completion.d
/msg
: $(REPO_ROOT
)/bash
/bash_completion.d
/msg
28 install $(REPO_ROOT
)/bash
/bash_completion.d
/msg
$@
29 @echo remove
$@
>> uninstall.sh
31 /usr
/libexec
/perlshell
: $(REPO_ROOT
)/libexec
/perlshell
32 install $(REPO_ROOT
)/libexec
/perlshell
$@
33 @echo remove
$@
>> uninstall.sh
35 /usr
/share
/doc
/tool
/rsync-semichroot.txt
: $(REPO_ROOT
)/doc
/rsync-semichroot.txt |
/usr
/share
/doc
/tool
36 install $(REPO_ROOT
)/doc
/rsync-semichroot.txt
$@
37 @echo remove
$@
>> uninstall.sh
39 /usr
/lib
/tool
/bash-utils
: $(REPO_ROOT
)/bash
/bash-utils |
/usr
/lib
/tool
40 install $(REPO_ROOT
)/bash
/bash-utils
$@
41 @echo remove
$@
>> uninstall.sh
43 /usr
/lib
/multithrottler
/Throttler.pm
: $(REPO_ROOT
)/lib
/multithrottler
/Throttler.pm |
/usr
/lib
/multithrottler
44 install $(REPO_ROOT
)/lib
/multithrottler
/Throttler.pm
$@
45 @echo remove
$@
>> uninstall.sh
47 /usr
/lib
/multithrottler
:
49 @echo remove
$@
>> uninstall.sh
54 @echo remove
$@
>> uninstall.sh
58 @echo remove
$@
>> uninstall.sh
62 @echo remove
$@
>> uninstall.sh
66 DEPCHECK_TARGETS
= $(addprefix DEPCHECK
/,$(NORMAL_TOOLS
))
67 depcheck-all
: $(DEPCHECK_TARGETS
)
68 .PHONY
: $(DEPCHECK_TARGETS
)
71 perl
-MARGV
::readonly
-e
1
73 python3
-c
'import parsel; import cssselect'
75 python
-c
'import xmltodict'
76 DEPCHECK
/palemoon-current-url
:
80 perl
-MXML
::Hash
::LX
-e
1
83 .PHONY
: try-satisfy-dependencies
84 try-satisfy-dependencies
:
87 python3-parsel python3-cssselect python3-xmltodict jq \
88 libnet-dbus-perl libxml-hash-lx-perl libjson-perl \
89 liblog-log4perl-perl libyaml-perl
93 /usr
/lib
/tool
/bash-utils \
99 install-tools
: depcheck-all
$(TOOLS_TARGET_FILES
) $(TOOLS_TARGET_SYMLINKS
)
100 .PHONY
: install-tools
102 $(TOOLS_TARGET_FILES
) $(TOOLS_TARGET_SYMLINKS
): |
$(TOOLS_TARGET_DIR
)
104 $(TOOLS_TARGET_FILES
): $(TOOLS_TARGET_DIR
)/%: % DEPCHECK
/%
105 install --compare
$(notdir $@
) $(TOOLS_TARGET_DIR
)/
106 @echo remove
$@
>> uninstall.sh
108 install-symlinks
: $(TOOLS_TARGET_SYMLINKS
)
109 .PHONY
: install-symlinks
111 $(TOOLS_TARGET_SYMLINKS
): $(TOOLS_TARGET_DIR
)/%: %
112 ln
-snfv
$(shell readlink
$<) $@
113 @echo remove
$@
>> uninstall.sh
117 @echo
$(TOOLS
) | tr
" " "\n" |
sort
121 include $(dir $(lastword
$(MAKEFILE_LIST
)))/Makefile.documentation.mk