From e42aca8856ef8f0d7c783a143cf10f638dc37d29 Mon Sep 17 00:00:00 2001 From: Joachim Nilsson Date: Tue, 5 Jan 2016 13:14:37 +0100 Subject: [PATCH] Makefile: Split install-dev taget into install-dev and install-data This makes it possible to skip installing any unnecessary cruft. Useful for embedded targets. Signed-off-by: Joachim Nilsson --- Makefile | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/Makefile b/Makefile index 02526e3..3ed610f 100644 --- a/Makefile +++ b/Makefile @@ -90,13 +90,15 @@ install-dev: $(PRINT) " INSTALL $(DESTDIR)$(libdir)/$(STATICLIB)\n" $(Q)install -d $(DESTDIR)$(libdir) $(Q)$(INSTALL) $(STATICLIB) $(DESTDIR)$(libdir)/$(STATICLIB) + +install-data: $(Q)install -d $(DESTDIR)$(datadir) - $(Q)for file in $(DISTFILES); do \ + $(Q)for file in $(DISTFILES); do \ printf " INSTALL $(DESTDIR)$(datadir)/$$file\n"; \ install -m 0644 $$file $(DESTDIR)$(datadir)/$$file; \ done -install: install-exec install-dev +install: install-exec install-dev install-data uninstall: -$(Q)$(RM) -r $(DESTDIR)$(datadir)