~ubuntu-branches/ubuntu/saucy/nut/saucy

« back to all changes in this revision

Viewing changes to lib/Makefile.in

  • Committer: Bazaar Package Importer
  • Author(s): Reinhard Tartler
  • Date: 2005-07-20 19:48:50 UTC
  • mto: (16.1.1 squeeze)
  • mto: This revision was merged to the branch mainline in revision 4.
  • Revision ID: james.westby@ubuntu.com-20050720194850-oo61wjr33rrx2mre
Tags: upstream-2.0.2
ImportĀ upstreamĀ versionĀ 2.0.2

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
# Network UPS Tools: lib
 
2
 
 
3
prefix          = @prefix@
 
4
exec_prefix     = @exec_prefix@
 
5
 
 
6
BINDIR          = $(DESTDIR)@bindir@
 
7
LIBDIR          = $(DESTDIR)@libdir@
 
8
 
 
9
INSTALLCMD  = @INSTALL@
 
10
INSTALLMODE = 0644
 
11
INSTALLMODE_X = 0755
 
12
 
 
13
PKG_CFG_DIR = $(DESTDIR)@PKG_CFG_DIR@
 
14
USE_PKG_CFG = @USE_PKG_CFG@
 
15
 
 
16
all:
 
17
 
 
18
clean:
 
19
        rm -f *~ libupsclient.pc libupsclient-config
 
20
 
 
21
distclean: clean
 
22
 
 
23
install: install-lib
 
24
 
 
25
install-lib: install-lib-helper install-lib-pkgconfig
 
26
 
 
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;\
 
31
        else \
 
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;\
 
35
                fi;\
 
36
                echo $(INSTALLCMD) -m $(INSTALLMODE) libupsclient.pc $(PKG_CFG_DIR) || exit 1; \
 
37
                $(INSTALLCMD) -m $(INSTALLMODE) libupsclient.pc $(PKG_CFG_DIR) || exit 1; \
 
38
        fi
 
39
 
 
40
# just the helper script (libupsclient-config)
 
41
install-lib-helper: 
 
42
        @if (test ! -d $(BINDIR)) then \
 
43
                echo ../install-sh -d $(BINDIR) || exit 1;\
 
44
                ../install-sh -d $(BINDIR) || exit 1;\
 
45
        fi
 
46
        @echo $(INSTALLCMD) -m $(INSTALLMODE_X) libupsclient-config $(BINDIR); \
 
47
        $(INSTALLCMD) -m $(INSTALLMODE_X) libupsclient-config $(BINDIR);