1PREFIX?=$(HOME)/.config/nvim
2FENNEL?=fennel
3SOURCES := $(shell find . -name '*.lua')
4
5install:
6 rm $(PREFIX)/lua/gabrielgio/*
7 mkdir -p $(PREFIX)/lua/gabrielgio/
8 for name in $(SOURCES); do\
9 install -m644 $${name} $(PREFIX)/$${name}; \
10 done
11
12format:
13 mkdir -p $(PREFIX)/lua/gabrielgio/
14 for name in $(SOURCES); do\
15 lua-format -i $${name}; \
16 done