Recently Written · git

tmpl

Insanely simple templates

git clone https://github.com/equwal/tmpl

Log | Files | Refs


make/functions/filenames (616 bytes)

1 # dir, notdir, suffix, basename: file name functions
2 #dir LIST # directory parts and slash
3 #notdir LIST # remove not directories from list AND do basename on the rest
4 #suffix LIST # get file extensions (.whatever )AND remove items without
5 #basename LIST # names without the last part of extensions
6 #addsuffix SUFFIX,LIST # mostly for file extensions
7 #addprefix PREFIX,LIST # mostly for package prefixes
8 #join LIST,LIST # maps the lists and concatenates each item to the corresponding
9 #wildcard PATTERN # globbing
10 #realpath LIST # abspath without symlinks
11 #abspath LIST # abspath without ., .., or repeated /
12 $(<++>)