mirror of
https://github.com/troglobit/libite.git
synced 2026-10-02 05:42:49 +07:00
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 <troglobit@gmail.com>
This commit is contained in:
@@ -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)
|
||||
|
||||
Reference in New Issue
Block a user