diff options
Diffstat (limited to 'Makefile')
-rw-r--r-- | Makefile | 5 |
1 files changed, 4 insertions, 1 deletions
@@ -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) |