mirror of
https://github.com/kanaka/mal.git
synced 2024-09-20 10:07:45 +03:00
f15b4021db
- Put guile into correct alphabetical order.
24 lines
645 B
Makefile
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
|