mnm-sys / tezdhar

A fast and unbeatable chess engine written in C
GNU General Public License v3.0
3 stars 1 forks source link

'make ctags' command is not creating tags for C header files #30

Closed mnm-sys closed 2 years ago

mnm-sys commented 2 years ago
√ src % make ctags   
list=' board.c chess.c parse.c ui.c  '; unique=`for i in $list; do if test -f "$i"; then echo $i; else echo ./$i; fi; done | gawk ' BEGIN { nonempty = 0; } { items[$0] = 1; nonempty = 1; } END { if (nonempty) { for (i in items) print i; }; } '`; \
    test -z "$unique" \
      || ctags    \
         $unique
mnm-sys commented 2 years ago

Add the header files in tezdhar_SOURCES. Ideally they should be added in tezdhar_HEADERS but it would lead to other more configuration changes (like defining tezdhardir).