aboutsummaryrefslogtreecommitdiffstats
path: root/Makefile
diff options
context:
space:
mode:
Diffstat (limited to 'Makefile')
-rw-r--r--Makefile5
1 files changed, 4 insertions, 1 deletions
diff --git a/Makefile b/Makefile
index fbdc68c..dea14df 100644
--- a/Makefile
+++ b/Makefile
@@ -60,10 +60,13 @@ $(PROGNAME): $(OBJS)
# phonies
# technically .PHONY isn't POSIX, but targets with a leading period aren't
# reserved so it's still valid, it'd just be useless to actually execute
-.PHONY: all clean install uninstall
+.PHONY: all format clean install uninstall
clean:
rm -rf $(OBJS) $(PROGNAME) $(TESTS)
+format:
+ find . (-name '*.[ch]' -a (! -name 'linenoise.*')) -exec clang-format -style=file -i {} \;
+
install: $(BINS) $(MANS)
mkdir -p $(BINDIR) $(MANDIR)/man1
cp $(BINS) $(BINDIR)