bugfix
[hband-tools.git] / tabdata / Makefile
blob8fdadff5401738e0a88250e8d665043d469548c4
2 BIN_DIR = /usr/tool
3 LIB_DIR = /usr/lib/tool/perl5/tabdata
5 TOOLS = \
6 csv2td \
7 kvpairs2td \
8 mrkv2td \
9 td2html \
10 td2kvpairs \
11 td2mrkv \
12 td-add-headers \
13 td-alter \
14 td-expand \
15 td-disamb-headers \
16 td-filter \
17 td-collapse \
18 td-keepheader \
19 td-lpstat \
20 td-ls \
21 td-pivot \
22 td-select \
23 td-sort \
24 td-trans \
25 td-trans-fixcol \
26 td-trans-group \
27 td-trans-gshadow \
28 td-trans-ls \
29 td-trans-mount \
30 td-trans-passwd \
31 td-trans-shadow \
32 vcf2td \
35 TARGET_TOOLS = $(foreach filename,$(TOOLS),$(BIN_DIR)/$(filename))
38 install-all: depcheck $(TARGET_TOOLS) $(LIB_DIR)/common.pl install-manpages
41 $(TARGET_TOOLS): $(BIN_DIR)/%: %
42 install $(notdir $@) $(BIN_DIR)/
43 @echo remove $@ >> uninstall.sh
45 $(LIB_DIR)/common.pl: common.pl $(LIB_DIR)
46 install $(notdir $@) $(LIB_DIR)/
47 @echo remove $@ >> uninstall.sh
49 $(LIB_DIR):
50 mkdir -p $@
51 @echo remove $@ >> uninstall.sh
53 .PHONY: depcheck
54 depcheck:
55 $(info Checking dependencies...)
56 perl -MSwitch -e 1
57 perl -MList::MoreUtils -e 1
58 perl -MPod::Usage -e 1
59 perl -MMIME::QuotedPrint -e 1
60 perl -MEncode -e 1
61 perl -MText::CSV -e 1
63 .PHONY: try-satisfy-dependencies
64 try-satisfy-dependencies:
65 apt install libswitch-perl liblist-moreutils-perl libtext-csv-perl
68 REPO_ROOT = ..
70 include ../user-tools/Makefile.documentation.mk