Corrected make target - the make target will now test for libusb-*.a

This commit is contained in:
2017-12-02 12:42:52 -06:00
parent 6e011e6011
commit 90829dfbdd

View File

@@ -16,7 +16,7 @@ export URL = http://libusb.info/
export REPO = main export REPO = main
BRIEF = C library providing access to USB devices BRIEF = C library providing access to USB devices
DESC = libusb is a C library that provides generic access to USB devices DESC = libusb is a C library that provides generic access to USB devices
SNAPVER = 0 SNAPVER = 1
ARCHIVE := $(PWD)/SRC/$(shell ls SRC|egrep '(bz2|gz|tar|xz)$$'|tail -1) ARCHIVE := $(PWD)/SRC/$(shell ls SRC|egrep '(bz2|gz|tar|xz)$$'|tail -1)
TYPE := $(shell file -ib $(ARCHIVE)|cut -d';' -f1|tr -d '\n') TYPE := $(shell file -ib $(ARCHIVE)|cut -d';' -f1|tr -d '\n')
@@ -57,10 +57,10 @@ $(SRCDIR)/config.log: $(SRCDIR)/configure
--host=x86_64-snap-linux-gnu \ --host=x86_64-snap-linux-gnu \
--target=x86_64-snap-linux-gnu --target=x86_64-snap-linux-gnu
$(SRCDIR)/binfile: $(SRCDIR)/config.log $(SRCDIR)/libusb/.libs/libusb-*.a: $(SRCDIR)/config.log
@cd $(SRCDIR) && make @cd $(SRCDIR) && make
$(ROOT): $(SRCDIR)/binfile $(ROOT): $(SRCDIR)/libusb/.libs/libusb-*.a
@if [ -d $(ROOT) ]; then \ @if [ -d $(ROOT) ]; then \
touch $(ROOT); \ touch $(ROOT); \
else \ else \