1 lawrence.luo 1.1.2.1 #//%LICENSE////////////////////////////////////////////////////////////////
2 #//
3 #// Licensed to The Open Group (TOG) under one or more contributor license
4 #// agreements. Refer to the OpenPegasusNOTICE.txt file distributed with
5 #// this work for additional information regarding copyright ownership.
6 #// Each contributor licenses this file to you under the OpenPegasus Open
7 #// Source License; you may not use this file except in compliance with the
8 #// License.
9 #//
10 #// Permission is hereby granted, free of charge, to any person obtaining a
11 #// copy of this software and associated documentation files (the "Software"),
12 #// to deal in the Software without restriction, including without limitation
13 #// the rights to use, copy, modify, merge, publish, distribute, sublicense,
14 #// and/or sell copies of the Software, and to permit persons to whom the
15 #// Software is furnished to do so, subject to the following conditions:
16 #//
17 #// The above copyright notice and this permission notice shall be included
18 #// in all copies or substantial portions of the Software.
19 #//
20 #// THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS
21 #// OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
22 lawrence.luo 1.1.2.1 #// MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT.
23 #// IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY
24 #// CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT,
25 #// TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE
26 #// SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
27 #//
28 #//////////////////////////////////////////////////////////////////////////
29 # Makefile for webadmin website files.
30
31 ROOT = .
32
33 include $(ROOT)/env_var.status
34
35 # There is no 'OS' defined when it is on linux platform, so define OS = linux.
36 # On zOS,Solaris,HP ,'OS' has already been defined.
37 ifndef OS
38 OS = linux
39 endif
40
41 # WEBADMIN_ROOT is the path where webadmin pages locate in source.
42 WEBADMIN_ROOT = $(PEGASUS_ROOT)/www
43 lawrence.luo 1.1.2.1
44 # WEBADMIN_HOME/www is the path in the product.
45 WEBADMIN_HOME = $(PEGASUS_HOME)
46
47 #WEBADMIN_TARGET is the path where webadmin pages locate in the system.
48 ifeq ($(OS), linux)
49 WEBADMIN_TARGET = /opt/tog-pegasus/www
50 endif
51
52 ifeq ($(OS), zos)
53 WEBADMIN_TARGET = /var/wbem/www
54 endif
55
56 ifeq ($(OS), PASE)
57 WEBADMIN_TARGET = /QOpenSys/QIBM/UserData/UME/Pegasus/www
58 endif
59
60 ifeq ($(OS),solaris)
61 endif
62
63 ifeq ($(OS),VMS)
64 lawrence.luo 1.1.2.1 endif
65
66 ifeq ($(OS),aix)
67 endif
68
69 ifeq ($(OS),windows)
70 endif
71
72 ifeq ($(OS),darwin)
73 endif
74
75 copy_webadmin_directory: FORCE
76 @$(CPDIRHIER) $(WEBADMIN_ROOT) $(WEBADMIN_HOME)
77
78 config_webadmin_directory:FORCE
79 if [ ! -d $(WEBADMIN_TARGET) ]; then \
80 echo "$(WEBADMIN_TARGET) not found"; \
81 else \
82 $(CPDIRHIER) $(WEBADMIN_ROOT)/* $(WEBADMIN_TARGET); \
83 fi
84
85 lawrence.luo 1.1.2.1
86 .PHONY: FORCE
87
88 FORCE:
89 include $(ROOT)/mak/commands.mak
90
91 # DO NOT DELETE
|