The following changes were made:

* Makefile now uses SRCDIR/lspci as target
  * Dependencies added
This commit is contained in:
2019-02-13 18:36:58 -06:00
parent fd517f3ad0
commit 576b4fd28f
4 changed files with 41 additions and 4 deletions

View File

@@ -62,7 +62,7 @@
# of the package.
ARCH = x86_64
DEPENDS =
DEPENDS = dash,eudev,glibc,kmod,zlib
BUILDDEPS =
SRCPKG =
URL = https://mj.ucw.cz/sw/pciutils/
@@ -70,7 +70,7 @@ REPO = main
BRIEF = Utilities and library for PCI devices
DESC = The PCI Utilities are a collection of programs for inspecting and \
manipulating configuration of PCI devices
SNAPVER = 0
SNAPVER = 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')
@@ -95,11 +95,11 @@ $(SRCDIR)/Makefile: $(ARCHIVE)
fi
@touch $(SRCDIR)/Makefile
$(SRCDIR)/binfile: $(SRCDIR)/Makefile
$(SRCDIR)/lspci: $(SRCDIR)/Makefile
@cd $(SRCDIR) && make PREFIX=/usr SHAREDIR=/usr/share/hwdata \
SHARED=yes
$(ROOT): $(SRCDIR)/binfile
$(ROOT): $(SRCDIR)/lspci
@if [ -d $(ROOT) ]; then \
touch $(ROOT); \
else \