1 | # $Id: Makefile.am,v 1.1.1.1 2004-04-09 20:08:58 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 | sysinitdir = @SYSINITDIR@ |
---|
20 | |
---|
21 | noinst_DATA = ifplugd.init ifplugd.action ifplugd.conf |
---|
22 | |
---|
23 | EXTRA_DIST = ifplugd.init.in ifplugd.action ifplugd.conf |
---|
24 | |
---|
25 | CLEANFILES = ifplugd.init |
---|
26 | |
---|
27 | ifplugd.init: ifplugd.init.in Makefile |
---|
28 | sed -e 's,@sysconfdir\@,$(sysconfdir),g' -e 's,@sbindir\@,$(sbindir),g' $< > $@ |
---|
29 | chmod 755 $@ |
---|
30 | |
---|
31 | install-data-local: ifplugd.init |
---|
32 | $(INSTALL) -b -D -m755 ifplugd.init ${DESTDIR}${sysinitdir}/ifplugd |
---|
33 | $(INSTALL) -b -D -m755 $(srcdir)/ifplugd.action ${DESTDIR}${sysconfdir}/ifplugd/ifplugd.action |
---|
34 | $(INSTALL) -b -D -m644 $(srcdir)/ifplugd.conf ${DESTDIR}${sysconfdir}/ifplugd/ifplugd.conf |
---|
35 | |
---|
36 | uninstall-local: |
---|
37 | rm -f ${DESTDIR}${sysconfdir}/ifplugd/ifplugd.action ${DESTDIR}${sysconfdir}/ifplugd/ifplugd.conf ${DESTDIR}${sysinitdir}/ifplugd |
---|