| 1 |
# Copyright (C) 1994, 1995-8, 1999 Free Software Foundation, Inc. |
| 2 |
# This Makefile.in is free software; the Free Software Foundation |
| 3 |
# gives unlimited permission to copy and/or distribute it, |
| 4 |
# with or without modifications, as long as this notice is preserved. |
| 5 |
|
| 6 |
# This program is distributed in the hope that it will be useful, |
| 7 |
# but WITHOUT ANY WARRANTY, to the extent permitted by law; without |
| 8 |
# even the implied warranty of MERCHANTABILITY or FITNESS FOR A |
| 9 |
# PARTICULAR PURPOSE. |
| 10 |
|
| 11 |
|
| 12 |
SHELL = @SHELL@ |
| 13 |
|
| 14 |
srcdir = @srcdir@ |
| 15 |
top_srcdir = @top_srcdir@ |
| 16 |
VPATH = @srcdir@ |
| 17 |
prefix = @prefix@ |
| 18 |
exec_prefix = @exec_prefix@ |
| 19 |
sysconfdir = @sysconfdir@ |
| 20 |
|
| 21 |
mandir = @mandir@ |
| 22 |
|
| 23 |
MANFILES = $(MAN1FILES) $(MAN5FILES) |
| 24 |
MAN1FILES = ample.1 |
| 25 |
MAN1PATH = ${mandir}/man1 |
| 26 |
MAN5FILES = ample.conf.5 ample.html.5 |
| 27 |
MAN5PATH = ${mandir}/man5 |
| 28 |
|
| 29 |
INSTALL = @INSTALL@ |
| 30 |
|
| 31 |
all: |
| 32 |
@for i in $(MANFILES); do \ |
| 33 |
echo "Creating man page $$i ..."; \ |
| 34 |
cat $${i}.in | sed 's,@sysconfdir\@,$(sysconfdir),g' > $$i; \ |
| 35 |
done |
| 36 |
|
| 37 |
clean: |
| 38 |
rm -f $(MANFILES) |
| 39 |
|
| 40 |
install: |
| 41 |
$(INSTALL) -d $(MAN1PATH) $(MAN5PATH); |
| 42 |
@for i in $(MAN1FILES); do \ |
| 43 |
echo "Installing man page $$i ..."; \ |
| 44 |
$(INSTALL) -m 644 $$i $(MAN1PATH); \ |
| 45 |
done |
| 46 |
@for i in $(MAN5FILES); do \ |
| 47 |
echo "Installing $$i ..."; \ |
| 48 |
$(INSTALL) -m 644 $$i $(MAN5PATH); \ |
| 49 |
done |
| 50 |
|
| 51 |
uninstall: |
| 52 |
@for i in $(MAN1FILES); do \ |
| 53 |
echo "Removing $$i ..."; \ |
| 54 |
rm -f $(MAN1PATH)/$$i; \ |
| 55 |
done |
| 56 |
@for i in $(MAN5FILES); do \ |
| 57 |
echo "Removing $$i ..."; \ |
| 58 |
rm -f $(MAN5PATH)/$$i; \ |
| 59 |
done |
| 60 |
|
| 61 |
maint-clean: |
| 62 |
rm -f Makefile *~ $(MANFILES) |
| 63 |
|
| 64 |
dist-clean: |
| 65 |
rm -rf CVS Makefile *~ $(MANFILES) |
| 66 |
|
| 67 |
.PHONY: all clean install dist-clean maint-clean |
| 68 |
|
| 69 |
# Tell versions [3.59,3.63) of GNU make to not export all variables. |
| 70 |
# Otherwise a system limit (for SysV at least) may be exceeded. |
| 71 |
.NOEXPORT: |