1
# Network UPS Tools: lib
4
exec_prefix = @exec_prefix@
6
BINDIR = $(DESTDIR)@bindir@
7
LIBDIR = $(DESTDIR)@libdir@
13
PKG_CFG_DIR = $(DESTDIR)@PKG_CFG_DIR@
14
USE_PKG_CFG = @USE_PKG_CFG@
19
rm -f *~ libupsclient.pc libupsclient-config
25
install-lib: install-lib-helper install-lib-pkgconfig
27
# just the pkg-config file (libupsclient.pc)
28
install-lib-pkgconfig:
29
@if (test "$(USE_PKG_CFG)" = "no") then \
30
echo "Missing pkg-config support: libupsclient.pc not installed" || exit 1;\
32
if (test ! -d $(PKG_CFG_DIR)) then \
33
echo ../install-sh -d $(PKG_CFG_DIR) || exit 1;\
34
../install-sh -d $(PKG_CFG_DIR) || exit 1;\
36
echo $(INSTALLCMD) -m $(INSTALLMODE) libupsclient.pc $(PKG_CFG_DIR) || exit 1; \
37
$(INSTALLCMD) -m $(INSTALLMODE) libupsclient.pc $(PKG_CFG_DIR) || exit 1; \
40
# just the helper script (libupsclient-config)
42
@if (test ! -d $(BINDIR)) then \
43
echo ../install-sh -d $(BINDIR) || exit 1;\
44
../install-sh -d $(BINDIR) || exit 1;\
46
@echo $(INSTALLCMD) -m $(INSTALLMODE_X) libupsclient-config $(BINDIR); \
47
$(INSTALLCMD) -m $(INSTALLMODE_X) libupsclient-config $(BINDIR);