summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--Makefile8
1 files changed, 7 insertions, 1 deletions
diff --git a/Makefile b/Makefile
index 8253d03..e32fd5e 100644
--- a/Makefile
+++ b/Makefile
@@ -2,7 +2,7 @@
# Requires a compiler with -MD support, currently
-# `make' from top level will build in buttress.b
+# `make' from top level will build in directory `build'
# `make BUILDDIR=foo' from top level will build in directory foo
ifndef REALBUILD
ifndef BUILDDIR
@@ -15,6 +15,9 @@ endif
all:
@test -d $(BUILDDIR) || mkdir $(BUILDDIR)
@make -C $(BUILDDIR) -f ../Makefile REALBUILD=yes
+spotless:
+ @test -d $(BUILDDIR) || mkdir $(BUILDDIR)
+ @make -C $(BUILDDIR) -f ../Makefile spotless REALBUILD=yes
clean:
@test -d $(BUILDDIR) || mkdir $(BUILDDIR)
@make -C $(BUILDDIR) -f ../Makefile clean REALBUILD=yes
@@ -64,6 +67,9 @@ buttress: $(OBJECTS)
version.o: FORCE
$(CC) $(VDEF) -MD -c $(SRC)version.c
+spotless:: clean
+ rm -f *.d
+
clean::
rm -f *.o buttress core