From f47d753135902e64d1f221c67d3b0676c5ba3352 Mon Sep 17 00:00:00 2001 From: Ivy Foster Date: Wed, 6 May 2020 18:56:45 -0500 Subject: [PATCH] GNUmakefile: add individual install rules for each renderer This eases split packaging as suggested in https://github.com/Cloudef/bemenu/issues/79#issuecomment-572867783 --- GNUmakefile | 26 ++++++++++++++++++++------ 1 file changed, 20 insertions(+), 6 deletions(-) diff --git a/GNUmakefile b/GNUmakefile index 15d7b32..3a917a6 100644 --- a/GNUmakefile +++ b/GNUmakefile @@ -100,10 +100,6 @@ install-libs: $(libs) install-lib-symlinks: $(libs) | install-libs cp -RP $^ $(addsuffix .$(firstword $(subst ., ,$(VERSION))), $^) "$(DESTDIR)$(PREFIX)$(libdir)" -install-renderers: - mkdir -p "$(DESTDIR)$(PREFIX)$(libdir)/bemenu" - -cp $(renderers) "$(DESTDIR)$(PREFIX)$(libdir)/bemenu" - install-bins: mkdir -p "$(DESTDIR)$(PREFIX)$(bindir)" -cp $(bins) "$(DESTDIR)$(PREFIX)$(bindir)" @@ -113,7 +109,23 @@ install-man: man/bemenu.1 man/bemenu-run.1 mkdir -p "$(DESTDIR)$(PREFIX)$(mandir)" cp $^ "$(DESTDIR)$(PREFIX)$(mandir)" -install: install-pkgconfig install-include install-lib-symlinks install-renderers install-bins install-man +install-renderers: install-curses install-wayland install-x11 + +install-curses: curses + install -d "$(DESTDIR)$(PREFIX)$(libdir)/bemenu" + install bemenu-renderer-curses.so "$(DESTDIR)$(PREFIX)$(libdir)/bemenu" + +install-wayland: wayland + install -d "$(DESTDIR)$(PREFIX)$(libdir)/bemenu" + install bemenu-renderer-wayland.so "$(DESTDIR)$(PREFIX)$(libdir)/bemenu" + +install-x11: x11 + install -d "$(DESTDIR)$(PREFIX)$(libdir)/bemenu" + install bemenu-renderer-x11.so "$(DESTDIR)$(PREFIX)$(libdir)/bemenu" + +install-base: install-pkgconfig install-include install-lib-symlinks install-bins install-man + +install: install-base install-renderers @echo "Install OK!" doxygen: @@ -128,4 +140,6 @@ clean: $(RM) -r html .DELETE_ON_ERROR: -.PHONY: all clean install install-pkgconfig install-include install-libs install-lib-symlinks install-man install-bins install-renderers doxygen clients curses x11 wayland +.PHONY: all clean install install-base install-pkgconfig install-include install-libs install-lib-symlinks \ + install-man install-bins install-renderers install-curses install-wayland install-x11 \ + doxygen clients curses x11 wayland