From 67c80fa9930201d745a372bb2d451801db76c219 Mon Sep 17 00:00:00 2001 From: Mattias Andrée Date: Tue, 5 Jan 2016 02:10:51 +0100 Subject: update makefile MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: Mattias Andrée --- INSTALL | 4 +++- Makefile.in | 28 +++++++++++++++++++++++++--- 2 files changed, 28 insertions(+), 4 deletions(-) diff --git a/INSTALL b/INSTALL index 68c3dbe..d7eeb3e 100644 --- a/INSTALL +++ b/INSTALL @@ -66,7 +66,9 @@ to install. This rules are available: ├─────────────┼─────────────────────┼────────────────────────────────────────────┤ │ base │ install-base │ Install the basics: │ │ lib │ install-lib │ Install the libred library. │ -│ data │ install-data │ Install the resourcs. │ +│ data │ install-data │ Install the resources. │ +│ │ install-librarian │ Install the librarian file. │ +│ │ install-pc │ Install the pkg-config file. │ │ │ install-copyright │ Install the Expat License. │ │ doc │ install-doc │ Include all manuals: │ │ info │ install-info │ Include info manual. (Texinfo) │ diff --git a/Makefile.in b/Makefile.in index 098135a..c019752 100644 --- a/Makefile.in +++ b/Makefile.in @@ -62,7 +62,7 @@ _COPYING = COPYING _EVERYTHING = $(__EVERYTHING_ALL_COMMON) DEPENDENCIES INSTALL NEWS \ $(foreach F,$(___EVERYTHING_INFO),doc/info/$(F).texinfo) \ src/10deg src/blackbody.c src/libred.h src/macros.h \ - src/parse_10deg.c src/solar.c + src/parse_10deg.c src/solar.c src/libred.librarian src/libred.pc # }} @@ -71,24 +71,46 @@ _EVERYTHING = $(__EVERYTHING_ALL_COMMON) DEPENDENCIES INSTALL NEWS \ include $(v)mk/all.mk # And our non-reusable make rules. + bin/parse_10deg: src/parse_10deg.c | src/blackbody.c base: data data: bin/10deg -install-base: install-data +install-base: install-data install-librarian install-pc install-data: install-10deg -uninstall: uninstall-data +uninstall: uninstall-data uninstall-librarian uninstall-pc uninstall-data: install-10deg + bin/10deg: src/10deg bin/parse_10deg @$(PRINTF_INFO) '\e[00;01;31mGEN\e[34m %s\e[00m$A\n' "$@" @$(MKDIR) -p $(shell $(DIRNAME) $@) $(Q)bin/parse_10deg < src/10deg > $@ #$Z @$(ECHO_EMPTY) + install-10deg: bin/10deg @$(PRINTF_INFO) '\e[00;01;31mINSTALL\e[34m %s\e[00m\n' "$@" $(Q)$(INSTALL_DIR) -- "$(DESTDIR)$(SYSDEPRESDIR)/$(PKGNAME)" $(Q)$(INSTALL_DATA) bin/10deg -- "$(DESTDIR)$(SYSDEPRESDIR)/$(PKGNAME)/10deg" @$(ECHO_EMPTY) + +install-librarian: src/libred.librarian + @$(PRINTF_INFO) '\e[00;01;31mINSTALL\e[34m %s\e[00m\n' "$@" + $(Q)$(INSTALL_DIR) -- "$(DESTDIR)$(DATADIR)/librarian" + $(Q)$(INSTALL_DATA) $^ -- "$(DESTDIR)$(DATADIR)/librarian/libred=$(_SO_VERSION_libred)" + @$(ECHO_EMPTY) + +install-pc: src/libred.pc + @$(PRINTF_INFO) '\e[00;01;31mINSTALL\e[34m %s\e[00m\n' "$@" + $(Q)$(INSTALL_DIR) -- "$(DESTDIR)$(SYSDEPDATADIR)/pkgconfig" + $(Q)$(INSTALL_DATA) $^ -- "$(DESTDIR)$(SYSDEPDATADIR)/pkgconfig/libred.pc" + @$(ECHO_EMPTY) + uninstall-10deg: -$(Q)$(RM) -- "$(DESTDIR)$(SYSDEPRESDIR)/$(PKGNAME)/10deg" -$(Q)$(RMDIR) -- "$(DESTDIR)$(SYSDEPRESDIR)/$(PKGNAME)" +uninstall-librarian: + -$(Q)$(RM) -- "$(DESTDIR)$(DATADIR)/librarian/libred=$(_SO_VERSION_libred)" + +uninstall-pc: + -$(Q)$(RM) -- "$(DESTDIR)$(SYSDEPDATADIR)/pkgconfig/libred.pc" + -- cgit v1.2.3-70-g09d2