summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorTavian Barnes <tavianator@tavianator.com>2022-05-09 12:06:28 -0400
committerTavian Barnes <tavianator@tavianator.com>2022-05-09 12:06:28 -0400
commitfd237b4dc6759f72897d52ccd7c4c71c84027771 (patch)
tree459bbcce7d51fd38bb2f5d1fc75f7dd06ca661eb
parentb078d8d4bb7a4759ca1296b3f0be0866b7c182f2 (diff)
downloadbfs-fd237b4dc6759f72897d52ccd7c4c71c84027771.tar.xz
Makefile: New check-install target
-rw-r--r--Makefile8
1 files changed, 8 insertions, 0 deletions
diff --git a/Makefile b/Makefile
index c10814a..e23642b 100644
--- a/Makefile
+++ b/Makefile
@@ -270,6 +270,7 @@ ifeq ($(OS) $(ARCH),Linux x86_64)
endif
+$(MAKE) -B release check $(DISTCHECK_FLAGS)
+$(MAKE) -B check $(DISTCHECK_FLAGS)
+ +$(MAKE) check-install
.PHONY: distcheck
clean:
@@ -294,6 +295,13 @@ uninstall:
$(RM) $(DESTDIR)$(PREFIX)/bin/bfs
.PHONY: uninstall
+check-install:
+ +$(MAKE) install DESTDIR=build/pkg
+ +$(MAKE) uninstall DESTDIR=build/pkg
+ ./bfs build/pkg -not -type d -print -exit 1
+ $(RM) -r build/pkg
+.PHONY: check-install
+
.SUFFIXES:
-include $(wildcard build/*.d build/tests/*.d)