diff --git a/src/Makefile b/src/Makefile index 8356d0001..034a2230f 100644 --- a/src/Makefile +++ b/src/Makefile @@ -115,7 +115,11 @@ install: $(INSTALL) ../bin/* $(DESTDIR)$(bindir) avail: +ifneq ($(patsubst %,../bin/%,$(PROGS)),$(wildcard $(patsubst %,../bin/%,$(PROGS)))) + $(error executables are missing, please run make first) +else $(foreach prog,$(PROGS),$(AVAIL_recipe)) +endif unavail: $(foreach prog,$(PROGS),$(UNAVAIL_recipe))