diff options
author | Lennart Poettering <lennart@poettering.net> | 2003-08-11 16:19:52 +0000 |
---|---|---|
committer | Lennart Poettering <lennart@poettering.net> | 2003-08-11 16:19:52 +0000 |
commit | c471ab6794ad48a571f8658fa1fab6d4ab8cc358 (patch) | |
tree | e4cf58dc4b2689460d0c83e7b9d96d5c8a2cf7d1 /src/Makefile.am | |
parent | 9a5162c33017bab6677c528189cff5a501f3822a (diff) |
distcheck works now
build fixes
git-svn-id: file:///home/lennart/svn/public/ifplugd/trunk@31 2bf48fe7-cfc1-0310-909f-d9042e1e0fef
Diffstat (limited to 'src/Makefile.am')
-rw-r--r-- | src/Makefile.am | 34 |
1 files changed, 26 insertions, 8 deletions
diff --git a/src/Makefile.am b/src/Makefile.am index e0831c5..87176bc 100644 --- a/src/Makefile.am +++ b/src/Makefile.am @@ -1,4 +1,4 @@ -# $Id: Makefile.am 22 2003-06-15 16:36:33Z lennart $ +# $Id$ # This file is part of ifplugd. # @@ -16,22 +16,40 @@ # along with ifplugd; if not, write to the Free Software Foundation, # Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA. +MAINTAINERCLEANFILES = svn-revision.h + AM_CFLAGS = -DSYSCONFDIR="\"$(sysconfdir)\"" sbin_PROGRAMS = ifplugd ifstatus -ifplugd_SOURCES = ifplugd.c interface.c interface.h ethtool-kernel.h ethtool-local.h svn-revision.h wireless.15.h ifmonitor.h ifmonitor.c nlapi.h nlapi.c -ifstatus_SOURCES = ifstatus.c interface.c interface.h ethtool-kernel.h ethtool-local.h svn-revision.h wireless.15.h -MAINTAINERCLEANFILES = svn-revision.h +ifplugd_SOURCES = ifplugd.c \ + interface.c interface.h \ + ethtool-kernel.h ethtool-local.h \ + wireless.h wireless.15.h \ + ifmonitor.h ifmonitor.c \ + nlapi.h nlapi.c + +ifstatus_SOURCES = ifstatus.c \ + interface.c interface.h \ + ethtool-kernel.h ethtool-local.h \ + wireless.h wireless.15.h -ifplugd.o: svn-revision.h -ifstatus.o: svn-revision.h +EXTRA_DIST = svn-revision.h + +BUILT_SOURCES = svn-revision.h + +ifstatus.$(OBJEXT): svn-revision.h +ifplugd.$(OBJEXT): svn-revision.h svn-revision.h: Makefile if test -d "$(top_srcdir)/.svn" ; then \ if REV=`svn info "$(top_srcdir)" | grep ^Revision | cut -f2 -d" "` 2> /dev/null ; then \ echo -e "#ifndef foosvnrevisionhfoo\n#define foosvnrevisionhfoo\n#define SVN_REVISION \"$$REV\"\n#endif" > $@ ; \ fi \ - else \ - test -f $@ || touch $@ ; \ fi + +svnkeywords: + rm -f svn-revision.h + svn propset svn:keywords Id *.c *.h Makefile.am + +.PHONY: svnkeywords |