Merge pull request #1994 from Compyx/make-avail-sanity-check
make avail: check for presence of binaries before creating symbolic links
This commit is contained in:
@@ -115,7 +115,11 @@ install:
|
|||||||
$(INSTALL) ../bin/* $(DESTDIR)$(bindir)
|
$(INSTALL) ../bin/* $(DESTDIR)$(bindir)
|
||||||
|
|
||||||
avail:
|
avail:
|
||||||
|
ifneq ($(patsubst %,../bin/%,$(PROGS)),$(wildcard $(patsubst %,../bin/%,$(PROGS))))
|
||||||
|
$(error executables are missing, please run make first)
|
||||||
|
else
|
||||||
$(foreach prog,$(PROGS),$(AVAIL_recipe))
|
$(foreach prog,$(PROGS),$(AVAIL_recipe))
|
||||||
|
endif
|
||||||
|
|
||||||
unavail:
|
unavail:
|
||||||
$(foreach prog,$(PROGS),$(UNAVAIL_recipe))
|
$(foreach prog,$(PROGS),$(UNAVAIL_recipe))
|
||||||
|
|||||||
Reference in New Issue
Block a user