1 | # $Id: Makefile.am,v 1.1.1.1 2004-04-09 20:09:08 amb Exp $ |
---|
2 | |
---|
3 | # This file is part of ifplugd. |
---|
4 | # |
---|
5 | # ifplugd is free software; you can redistribute it and/or modify it |
---|
6 | # under the terms of the GNU General Public License as published by |
---|
7 | # the Free Software Foundation; either version 2 of the License, or |
---|
8 | # (at your option) any later version. |
---|
9 | # |
---|
10 | # ifplugd is distributed in the hope that it will be useful, but |
---|
11 | # WITHOUT ANY WARRANTY; without even the implied warranty of |
---|
12 | # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU |
---|
13 | # General Public License for more details. |
---|
14 | # |
---|
15 | # You should have received a copy of the GNU General Public License |
---|
16 | # along with ifplugd; if not, write to the Free Software Foundation, |
---|
17 | # Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA. |
---|
18 | |
---|
19 | AM_CFLAGS = $(LIBDAEMON_CFLAGS) -DSYSCONFDIR="\"$(sysconfdir)\"" |
---|
20 | LDADD = $(LIBDAEMON_LIBS) |
---|
21 | |
---|
22 | sbin_PROGRAMS = ifplugd ifplugstatus |
---|
23 | |
---|
24 | ifplugd_SOURCES = ifplugd.c \ |
---|
25 | interface.c interface.h \ |
---|
26 | ethtool-kernel.h ethtool-local.h \ |
---|
27 | wireless.h wireless.15.h wireless.16.h \ |
---|
28 | ifmonitor.h ifmonitor.c \ |
---|
29 | nlapi.h nlapi.c \ |
---|
30 | svn-revision.h |
---|
31 | |
---|
32 | ifplugstatus_SOURCES = ifplugstatus.c \ |
---|
33 | interface.c interface.h \ |
---|
34 | ethtool-kernel.h ethtool-local.h \ |
---|
35 | wireless.h wireless.15.h wireless.16.h \ |
---|
36 | svn-revision.h |
---|
37 | |
---|
38 | MAINTAINERCLEANFILES = |
---|
39 | BUILT_SOURCES = |
---|
40 | |
---|
41 | if USE_SUBVERSION |
---|
42 | MAINTAINERCLEANFILES += svn-revision.h |
---|
43 | BUILT_SOURCES += svn-revision.h |
---|
44 | endif |
---|
45 | |
---|
46 | ifstatus.$(OBJEXT): svn-revision.h |
---|
47 | ifplugd.$(OBJEXT): svn-revision.h |
---|
48 | |
---|
49 | if USE_SUBVERSION |
---|
50 | svn-revision.h: Makefile |
---|
51 | if test -d "$(top_srcdir)/.svn" ; then \ |
---|
52 | if REV=`svn info "$(top_srcdir)" | grep ^Revision | cut -f2 -d" "` 2> /dev/null ; then \ |
---|
53 | echo -e "#ifndef foosvnrevisionhfoo\n#define foosvnrevisionhfoo\n#define SVN_REVISION \"$$REV\"\n#endif" > $@ ; \ |
---|
54 | fi \ |
---|
55 | fi |
---|
56 | |
---|
57 | svnkeywords: |
---|
58 | rm -f svn-revision.h |
---|
59 | svn propset svn:keywords Id *.c *.h Makefile.am |
---|
60 | |
---|
61 | .PHONY: svnkeywords |
---|
62 | endif |
---|
63 | |
---|