The following changes were made:
* Makefile now uses SRCDIR/lspci as target * Dependencies added
This commit is contained in:
8
Makefile
8
Makefile
@@ -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 \
|
||||
|
||||
Reference in New Issue
Block a user