1
1
mirror of https://github.com/kanaka/mal.git synced 2024-09-20 10:07:45 +03:00
mal/vimscript/Makefile
Joel Martin f15b4021db All: show comments with stats target.
- Put guile into correct alphabetical order.
2015-10-26 22:33:49 -05:00

24 lines
645 B
Makefile

SOURCES_BASE = readline.vim types.vim reader.vim printer.vim
SOURCES_LISP = env.vim core.vim stepA_mal.vim
SOURCES = $(SOURCES_BASE) $(SOURCES_LISP)
all: libvimreadline.so
libvimreadline.so: vimreadline.o
$(CC) -g -shared -o $@ $< -lreadline
vimreadline.o: vimreadline.c
$(CC) -g -fPIC -c $< -o $@
clean:
rm -f vimreadline.o libvimreadline.so
stats: $(SOURCES)
@wc $^
@printf "%5s %5s %5s %s\n" `grep -E "^[[:space:]]*\"|^[[:space:]]*$$" $^ | wc` "[comments/blanks]"
stats-lisp: $(SOURCES_LISP)
@wc $^
@printf "%5s %5s %5s %s\n" `grep -E "^[[:space:]]*\"|^[[:space:]]*$$" $^ | wc` "[comments/blanks]"
.PHONY: stats stats-lisp clean