WIP: uniproc
[hband-tools.git] / tabdata / Makefile
blob4b370f4cc95a0bf3a1b0d6bb8991c602b4f89bfe
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-ls \
20 td-pivot \
21 td-select \
22 td-sort \
23 td-trans \
24 td-trans-fixcol \
25 td-trans-group \
26 td-trans-gshadow \
27 td-trans-ls \
28 td-trans-mount \
29 td-trans-passwd \
30 td-trans-shadow \
31 vcf2td \
34 TARGET_TOOLS = $(foreach filename,$(TOOLS),$(BIN_DIR)/$(filename))
37 install-all: depcheck $(TARGET_TOOLS) $(LIB_DIR)/common.pl install-manpages
40 $(TARGET_TOOLS): $(BIN_DIR)/%: %
41 install $(notdir $@) $(BIN_DIR)/
42 @echo remove $@ >> uninstall.sh
44 $(LIB_DIR)/common.pl: common.pl $(LIB_DIR)
45 install $(notdir $@) $(LIB_DIR)/
46 @echo remove $@ >> uninstall.sh
48 $(LIB_DIR):
49 mkdir -p $@
50 @echo remove $@ >> uninstall.sh
52 .PHONY: depcheck
53 depcheck:
54 $(info Checking dependencies...)
55 perl -MSwitch -e 1
56 perl -MList::MoreUtils -e 1
57 perl -MPod::Usage -e 1
58 perl -MMIME::QuotedPrint -e 1
59 perl -MEncode -e 1
60 perl -MText::CSV -e 1
62 .PHONY: try-satisfy-dependencies
63 try-satisfy-dependencies:
64 apt install libswitch-perl liblist-moreutils-perl libtext-csv-perl
67 REPO_ROOT = ..
69 include ../user-tools/Makefile.documentation.mk