ajbj patch round-up
[nedit-bw.git] / makefile_column_targets.patch
blob4d8db408a721f3dfa92f9c1f892f1898c31f2559
1 Subject: use column(1) to show possible make targets
3 ---
5 Makefile | 2 +-
6 1 file changed, 1 insertion(+), 1 deletion(-)
8 diff --quilt old/Makefile new/Makefile
9 --- old/Makefile
10 +++ new/Makefile
11 @@ -14,11 +14,11 @@ SHELL=/bin/sh
14 all:
15 @echo "Please specify target:"
16 @echo "(For example, type \"make linux\" for a Linux system.)"
17 - @(cd makefiles && ls -C Makefile* | sed -e 's/Makefile.//g')
18 + @ls makefiles/Makefile* | sed -e 's|makefiles/Makefile\.||g' | column | column -t | sed -e 's/^/\t/'
20 .DEFAULT:
21 @- (cd Microline/XmL; if [ -f ../../makefiles/Makefile.$@ -a ! -f ./Makefile.$@ ];\
22 then ln -s ../../makefiles/Makefile.$@ .; fi)
23 @- (cd Xlt; if [ -f ../makefiles/Makefile.$@ -a ! -f ./Makefile.$@ ];\