diff options
author | Alejandro Colomar <alx@kernel.org> | 2024-02-07 22:53:55 +0100 |
---|---|---|
committer | Alejandro Colomar <alx@kernel.org> | 2024-02-07 22:54:37 +0100 |
commit | 21700271f17c9f2d76fbafb98064b18623f4ae66 (patch) | |
tree | aec70beb450a8f91df2f894dd4b13192c622ca74 | |
parent | 477e5f5784c1ed7fc952d6dd51402ca0cf0056ee (diff) | |
download | liba2i-21700271f17c9f2d76fbafb98064b18623f4ae66.tar.gz |
share/mk/: install-dev: Split target into more specific ones
This allows installing the header files only, in case some users don't
want it. It's really unnecessary, since one can just -la2i.
Signed-off-by: Alejandro Colomar <alx@kernel.org>
-rw-r--r-- | GNUmakefile | 4 | ||||
-rw-r--r-- | share/mk/install-dev.mk | 12 |
2 files changed, 14 insertions, 2 deletions
diff --git a/GNUmakefile b/GNUmakefile index 5426b36..0ddd424 100644 --- a/GNUmakefile +++ b/GNUmakefile @@ -58,7 +58,9 @@ help: $(info check Check the built library) $(info ) $(info install Wrapper for install-* targets) - $(info install-dev Install development files (.h, .pc)) + $(info install-dev Wrapper for install-dev-* targets) + $(info install-dev-include Install header files (.h)) + $(info install-dev-pc Install pc(5) file) $(info install-lib Wrapper for install-lib-* targets) $(info install-lib-shared Install shared library (.so)) $(info install-lib-static Install static library (.a)) diff --git a/share/mk/install-dev.mk b/share/mk/install-dev.mk index 1e39f3f..4b4cee2 100644 --- a/share/mk/install-dev.mk +++ b/share/mk/install-dev.mk @@ -26,8 +26,18 @@ $(_lib_pc): $(_pcdir)/%: $(builddir)/% $(MK) | $$(@D)/ $(INSTALL_DATA) -T $< $@ +.PHONY: install-dev-include +install-dev-include: $(_tu_h) + @: + + +.PHONY: install-dev-pc +install-dev-pc: $(_lib_pc) + @: + + .PHONY: install-dev -install-dev: $(_tu_h) $(_lib_pc) +install-dev: install-dev-include install-dev-pc @: |