mirror of
https://git.proxmox.com/git/mirror_iproute2
synced 2025-11-05 04:13:54 +00:00
Don't use KERNEL_INCLUDE unless necessary.
(Logical change 1.14)
This commit is contained in:
parent
c0076e70b1
commit
7bbc17647b
14
Makefile
14
Makefile
@ -4,7 +4,7 @@ SBINDIR=/sbin
|
||||
CONFDIR=/etc/iproute2
|
||||
DOCDIR=/usr/doc/iproute2
|
||||
|
||||
KERNEL_INCLUDE=/usr/src/linux/include
|
||||
KERNEL_INCLUDE=/usr/include
|
||||
LIBC_INCLUDE=/usr/include
|
||||
|
||||
DEFINES= -DRESOLVE_HOSTNAMES
|
||||
@ -43,20 +43,10 @@ SUBDIRS=lib ip tc misc
|
||||
|
||||
LIBNETLINK=../lib/libnetlink.a ../lib/libutil.a
|
||||
|
||||
all: check-kernel
|
||||
@set -e; \
|
||||
all:
|
||||
for i in $(SUBDIRS); \
|
||||
do $(MAKE) -C $$i; done
|
||||
|
||||
check-kernel:
|
||||
ifeq ($(KERNEL_INCLUDE),)
|
||||
@echo "Please, set correct KERNEL_INCLUDE"; false
|
||||
else
|
||||
@set -e; \
|
||||
if [ ! -r $(KERNEL_INCLUDE)/linux/autoconf.h ]; then \
|
||||
echo "Please, compile the kernel first"; false; fi
|
||||
endif
|
||||
|
||||
install: all
|
||||
install -m 0755 -d $(DESTDIR)$(SBINDIR)
|
||||
install -m 0755 -d $(DESTDIR)$(CONFDIR)
|
||||
|
||||
Loading…
Reference in New Issue
Block a user