From 0909decabcb6cedbb4125856a38a09252fb644f9 Mon Sep 17 00:00:00 2001 From: Joachim Nilsson Date: Thu, 18 Jun 2015 08:37:36 +0200 Subject: [PATCH] Make sure to also install new private.h, unfortunately necessary. Signed-off-by: Joachim Nilsson --- Makefile | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/Makefile b/Makefile index fc79318..0dddf12 100644 --- a/Makefile +++ b/Makefile @@ -46,7 +46,7 @@ ARFLAGS = crus MAKEFLAGS = --no-print-directory --silent DISTFILES = README CHANGELOG TODO LICENSE -HEADER = uev.h +HEADERS = uev.h private.h OBJS := uev.o io.o timer.o signal.o SRCS := $(OBJS:.o=.c) DEPS := $(SRCS:.c=.d) @@ -98,8 +98,10 @@ endif install-dev: @install -d $(DESTDIR)$(incdir)/$(LIBNAME) - @printf " INSTALL $(DESTDIR)$(incdir)/$(LIBNAME)/$(HEADER)\n" - @install -m 0644 $(HEADER) $(DESTDIR)$(incdir)/$(LIBNAME)/$(HEADER) + @for file in $(HEADERS); do \ + printf " INSTALL $(DESTDIR)$(incdir)/$(LIBNAME)/$$file\n"; \ + install -m 0644 $$file $(DESTDIR)$(incdir)/$(LIBNAME)/$$file; \ + done ifdef STATIC @printf " INSTALL $(DESTDIR)$(libdir)/$(STATICLIB)\n" @install -d $(DESTDIR)$(libdir)