| 1 |
############################################################################### |
| 2 |
# Copyright (C) 2007 Tetsuya Kimata <kimata@acapulco.dyndns.org> |
| 3 |
# |
| 4 |
# All rights reserved. |
| 5 |
# |
| 6 |
# This software is provided 'as-is', without any express or implied |
| 7 |
# warranty. In no event will the authors be held liable for any |
| 8 |
# damages arising from the use of this software. |
| 9 |
# |
| 10 |
# Permission is granted to anyone to use this software for any |
| 11 |
# purpose, including commercial applications, and to alter it and |
| 12 |
# redistribute it freely, subject to the following restrictions: |
| 13 |
# |
| 14 |
# 1. The origin of this software must not be misrepresented; you must |
| 15 |
# not claim that you wrote the original software. If you use this |
| 16 |
# software in a product, an acknowledgment in the product |
| 17 |
# documentation would be appreciated but is not required. |
| 18 |
# |
| 19 |
# 2. Altered source versions must be plainly marked as such, and must |
| 20 |
# not be misrepresented as being the original software. |
| 21 |
# |
| 22 |
# 3. This notice may not be removed or altered from any source |
| 23 |
# distribution. |
| 24 |
# |
| 25 |
# $Id: GNUmakefile.in 726 2005-09-24 14:19:32Z svn $ |
| 26 |
############################################################################### |
| 27 |
# |
| 28 |
# * ������ |
| 29 |
# - make start : Apache ������������������������ |
| 30 |
# - make restart : Apache ��������������������������� |
| 31 |
# - make stop : Apache ������������������������ |
| 32 |
# |
| 33 |
############################################################################### |
| 34 |
|
| 35 |
############################################################################### |
| 36 |
# ������ |
| 37 |
ifneq ($(findstring ja_JP,$(LANG)),) |
| 38 |
CONF_FILE := @PWD@/conf/apache.conf |
| 39 |
else |
| 40 |
CONF_FILE := @PWD@/conf/en/apache.conf |
| 41 |
endif |
| 42 |
|
| 43 |
############################################################################### |
| 44 |
# ��������������� |
| 45 |
all: start |
| 46 |
|
| 47 |
start: |
| 48 |
@APACHE_BIN@ -f $(CONF_FILE) -k start |
| 49 |
|
| 50 |
restart: |
| 51 |
@APACHE_BIN@ -f $(CONF_FILE) -k restart |
| 52 |
|
| 53 |
stop: |
| 54 |
@APACHE_BIN@ -f $(CONF_FILE) -k stop |
| 55 |
|
| 56 |
install: |
| 57 |
@mods_available="/etc/apache2/mods-available"; \ |
| 58 |
mods_enabled="/etc/apache2/mods-enabled"; \ |
| 59 |
if [ -e $$mods_available -a -e $$mods_enabled ]; then \ |
| 60 |
@APXS@ -i -n "uploader" @PACKAGE_NAME@.so; \ |
| 61 |
echo "LoadModule uploader_module @LIBEXECDIR@/@PACKAGE_NAME@.so" > \ |
| 62 |
$$mods_available/uploader.load; \ |
| 63 |
ln -s ../mods-available/uploader.load $$mods_enabled/uploader.conf; \ |
| 64 |
else \ |
| 65 |
@APXS@ -i -a -n "uploader" @PACKAGE_NAME@.so; \ |
| 66 |
fi |
| 67 |
|
| 68 |
.SUFFIXES: |
| 69 |
.PHONY: start restart stop install |
| 70 |
|
| 71 |
# Local Variables: |
| 72 |
# mode: makefile |
| 73 |
# coding: utf-8-unix |
| 74 |
# End: |