Annotation of embedaddon/istgt/etc/Makefile.in, revision 1.1.1.2
1.1 misho 1: # for etc
2:
3: top_srcdir = @top_srcdir@
4: srcdir = @srcdir@
5:
6: prefix = @prefix@
7: exec_prefix = @exec_prefix@
8: bindir = @bindir@
9: sbindir = @sbindir@
10: sysconfdir = @sysconfdir@
1.1.1.2 ! misho 11: datarootdir = @datarootdir@
! 12: datadir = @datadir@
1.1 misho 13: libexecdir = @libexecdir@
1.1.1.2 ! misho 14: mandir = @mandir@
1.1 misho 15:
16: configdir = @configdir@
17: mediadir = @mediadir@
18:
19: SED = @SED@
1.1.1.2 ! misho 20: INSTALL = @INSTALL@
! 21: MKDIR_P = @MKDIR_P@
1.1 misho 22:
23: source =
24: header =
25: document =
26: sample = auth.conf istgtcontrol.conf \
1.1.1.2 ! misho 27: istgt.large.conf.in istgt.conf.in \
! 28: istgt.sh.in istgt_netbsd.sh.in istgt_linux.sh.in
! 29: rctemplate = @rctemplate@
! 30: rcdir = @rcdir@
! 31: rcfile = $(rctemplate:.sh.in=.sh)
1.1 misho 32:
33: DISTDIR = $(top_srcdir)/`cat $(top_srcdir)/distdir`
34: DISTFILES = Makefile.in \
35: $(header) $(source) \
36: $(document) $(sample)
37:
38: #########################################################################
39:
1.1.1.2 ! misho 40: .PHONY: all install install-dirs
! 41: all: istgt.large.conf istgt.conf $(rcfile)
1.1 misho 42:
43: istgt.large.conf:
44: $(SED) -e 's:%%SYSCONFDIR%%:$(sysconfdir):g' \
45: -e 's:%%CONFIGDIR%%:$(configdir):g' \
46: -e 's:%%MEDIADIR%%:$(mediadir):g' < istgt.large.conf.in > $@
47: istgt.conf:
48: $(SED) -e 's:%%SYSCONFDIR%%:$(sysconfdir):g' \
49: -e 's:%%CONFIGDIR%%:$(configdir):g' \
50: -e 's:%%MEDIADIR%%:$(mediadir):g' < istgt.conf.in > $@
1.1.1.2 ! misho 51: $(rcfile):
1.1 misho 52: $(SED) -e 's:%%SYSCONFDIR%%:$(sysconfdir):g' \
53: -e 's:%%CONFIGDIR%%:$(configdir):g' \
54: -e 's:%%MEDIADIR%%:$(mediadir):g' \
1.1.1.2 ! misho 55: -e 's:%%BINDIR%%:$(bindir):g' \
! 56: -e 's:%%SBINDIR%%:$(sbindir):g' < $(rctemplate) > $@
1.1 misho 57:
1.1.1.2 ! misho 58: .PHONY: dist clean distclean depend
1.1 misho 59: dist: $(DISTFILES)
1.1.1.2 ! misho 60: $(MKDIR_P) $(DISTDIR)/$(subdir)
1.1 misho 61: cd $(srcdir); thisdir=`pwd`; \
62: for file in $(DISTFILES); do \
1.1.1.2 ! misho 63: cp -p $$thisdir/$$file $(DISTDIR)/$(subdir); \
1.1 misho 64: done
65:
66: install: install-dirs
1.1.1.2 ! misho 67: $(INSTALL) -m 0644 istgt.conf $(DESTDIR)$(sysconfdir)/istgt/istgt.conf.sample
! 68: $(INSTALL) -m 0644 istgt.large.conf \
! 69: $(DESTDIR)$(sysconfdir)/istgt/istgt.large.conf.sample
! 70: $(INSTALL) -m 0600 auth.conf $(DESTDIR)$(sysconfdir)/istgt/auth.conf.sample
! 71: $(INSTALL) -m 0600 istgtcontrol.conf \
! 72: $(DESTDIR)$(sysconfdir)/istgt/istgtcontrol.conf.sample
! 73: # $(INSTALL) -m 0555 istgt.sh $(DESTDIR)$(sysconfdir)/rc.d/istgt
! 74: if [ "x$(rcfile)" != "x" -a -f "$(rcfile)" ]; then \
! 75: $(INSTALL) -m 0555 $(rcfile) $(DESTDIR)$(rcdir)/istgt; \
! 76: fi
1.1 misho 77:
78: install-dirs:
1.1.1.2 ! misho 79: $(MKDIR_P) $(DESTDIR)$(sysconfdir)/istgt
! 80: if [ -n "$(rcfile)" ] && [ -f "$(rcfile)" ]; then \
! 81: if [ -n "$(DESTDIR)$(rcdir)" ] && [ ! -d "$(DESTDIR)$(rcdir)" ]; then \
! 82: $(MKDIR_P) $(DESTDIR)$(rcdir); \
! 83: fi \
! 84: fi
1.1 misho 85:
86: clean:
1.1.1.2 ! misho 87: -rm -f istgt.large.conf istgt.conf $(rcfile)
1.1 misho 88: -rm -f a.out *.o *.core
89: -rm -f *~
90:
91: distclean: clean
92: -rm -f Makefile config.status config.cache config.log config.h
93:
94: depend:
95:
96: #########################################################################
FreeBSD-CVSweb <freebsd-cvsweb@FreeBSD.org>