3 LIB_DIR
= /usr
/lib
/tool
/perl5
/tabdata
38 TARGET_TOOLS
= $(foreach filename
,$(TOOLS
),$(BIN_DIR
)/$(filename
))
41 install-all
: depcheck
$(TARGET_TOOLS
) $(LIB_DIR
)/common.pl install-manpages
45 @echo
$(TOOLS
) | tr
" " "\n" |
sort
48 $(TARGET_TOOLS
): $(BIN_DIR
)/%: %
49 install $(notdir $@
) $(BIN_DIR
)/
50 @echo remove
$@
>> uninstall.sh
52 $(LIB_DIR
)/common.pl
: common.pl
$(LIB_DIR
)
53 install $(notdir $@
) $(LIB_DIR
)/
54 @echo remove
$@
>> uninstall.sh
58 @echo remove
$@
>> uninstall.sh
62 $(info Checking dependencies...
)
64 perl
-MList
::MoreUtils
-e
1
65 perl
-MPod
::Usage
-e
1
66 perl
-MMIME
::QuotedPrint
-e
1
69 perl
-MMath
::Cartesian
::Product
-e
1
71 .PHONY
: try-satisfy-dependencies
72 try-satisfy-dependencies
:
73 apt
install libswitch-perl liblist-moreutils-perl libtext-csv-perl libmath-cartesian-product-perl
78 include ..
/user-tools
/Makefile.documentation.mk
81 index.md
: SHELL
= bash
83 echo
-ne
"# Tabdata commands\n\n" > $@~
84 for file in
$(TOOLS
); do echo
-ne
"- [$$file](#$$file)\n"; done
>> $@~
85 for file in
$(TOOLS
); do \
87 echo
-ne
"# $$file\n\n" ;\
88 pod2markdown
--utf8
< "$$file" |\
89 perl
-pe
's/^#/##/; s/\b([a-z0-9.-]+)(\(\d)/[$$1](#$$1)$$2/g' ;\