ViewVC Help
View File | Revision Log | Show Annotations | Revision Graph | Root Listing
root/i-scream/projects/libstatgrab/src/statgrab/Makefile.am
Revision: 1.10
Committed: Fri Jun 18 23:45:41 2004 UTC (20 years, 6 months ago) by tdb
Branch: MAIN
CVS Tags: LIBSTATGRAB_0_17, LIBSTATGRAB_0_16, LIBSTATGRAB_0_15, LIBSTATGRAB_0_14, LIBSTATGRAB_0_13, LIBSTATGRAB_0_12, LIBSTATGRAB_0_11_1, LIBSTATGRAB_0_11, LIBSTATGRAB_0_10_3, LIBSTATGRAB_0_10_2, LIBSTATGRAB_0_10_1, HEAD
Changes since 1.9: +5 -5 lines
Error occurred while calculating annotation data.
Log Message:
Fix permission setting when DESTDIR is used. There still seems to be an
issue with libtool on my FreeBSD box, but a google search suggests this is
fixed in later versions of libtool.

Thanks to Daniel <dragonheart@gentoo.org> for this one.

File Contents

# Content
1 # Makefile for libstatgrab/src/statgrab
2 # http://www.i-scream.org/libstatgrab/
3 # $Id: Makefile.am,v 1.9 2004/02/15 21:18:37 tdb Exp $
4
5 if STATGRAB
6 bin_PROGRAMS = statgrab
7 bin_SCRIPTS = statgrab-make-mrtg-config statgrab-make-mrtg-index
8 endif
9
10 statgrab_SOURCES = statgrab.c
11
12 INCLUDES = -I$(top_srcdir) -I$(top_builddir) \
13 -I$(top_srcdir)/src -I$(top_builddir)/src\
14 -I$(top_srcdir)/src/libstatgrab -I$(top_builddir)/src/libstatgrab
15
16 LDADD = $(top_builddir)/src/libstatgrab/libstatgrab.la @LINKFLAGS@
17
18 install-exec-local:
19 if STATGRAB
20 if SETGIDBINS
21 # Some operating systems need the binary to be setgid kmem
22 chgrp kmem $(DESTDIR)@bindir@/statgrab
23 chmod g+s $(DESTDIR)@bindir@/statgrab
24 endif
25 if SETUIDBINS
26 # Some operating systems need the binary to be setuid root
27 chown root $(DESTDIR)@bindir@/statgrab
28 chmod u+s $(DESTDIR)@bindir@/statgrab
29 endif
30 endif