diff mbox

[2/5] btrfs-progs: build, add make target for a build test

Message ID 86be0aeaf638b1b2c0dd453ff30d4dadd96250ef.1415379676.git.dsterba@suse.cz (mailing list archive)
State Accepted
Headers show

Commit Message

David Sterba Nov. 7, 2014, 5:06 p.m. UTC
A quick check that everything still builds.

Signed-off-by: David Sterba <dsterba@suse.cz>
---
 Makefile | 7 +++++++
 1 file changed, 7 insertions(+)
diff mbox

Patch

diff --git a/Makefile b/Makefile
index 99b03658a406..126dc593ddfb 100644
--- a/Makefile
+++ b/Makefile
@@ -248,6 +248,13 @@  library-test.static: $(libs_static) library-test.o
 	@echo "    [LD]     $@"
 	$(Q)$(CC) $(CFLAGS) -o library-test-static library-test.o $(LDFLAGS) $(libs_static)
 
+test-build:
+	$(MAKE) clean-all
+	$(MAKE) library-test
+	-$(MAKE) library-test.static
+	$(MAKE) -j 8 all
+	-$(MAKE) -j 8 static
+
 manpages:
 	$(Q)$(MAKE) $(MAKEOPTS) -C Documentation