format.mk 398 Bytes
Newer Older
Paul Seyfert's avatar
Paul Seyfert committed
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15
format: format_c format_perl format_vim

format_perl: urxvt/shellex.in
	echo "[FORMAT] $^"
	cd $(shell dirname $^) && perltidy $(shell basename $^)

format_c: preload/main.c
	echo "[FORMAT] $^"
	clang-format -i $^

format_vim:
	echo "[FORMAT]"
	for shfile in $(wildcard conf/*) shellex.in; do echo "[FORMAT] $${shfile}"; ./indent.sh $${shfile}; done

.PHONY: format format_c format_perl format_vim