[Bio] / askkb / Makefile Repository:
ViewVC logotype

Diff of /askkb/Makefile

Parent Directory Parent Directory | Revision Log Revision Log | View Patch Patch

revision 1.1, Wed Apr 24 16:11:58 2013 UTC revision 1.2, Wed May 1 00:45:43 2013 UTC
# Line 1  Line 1 
1  TOP_DIR = ../..  TOP_DIR = ../..
2  DEPLOY_RUNTIME ?= /kb/runtime  DEPLOY_RUNTIME ?= /kb/runtime
3  TARGET ?= /kb/deployment  TARGET ?= /kb/deployment
4  SERVICE_SPEC = askkb.spec  SERVICE_SPEC = AskKB.spec
5  SERVICE_PORT = 7072  SERVICE_PORT = 7072
6  SERVICE_NAME = askkb  SERVICE_NAME = AskKB
7  #  #
8  # We need this while we transition services to the new naming convention -  # We need this while we transition services to the new naming convention -
9  # Makefile.common use $(SERVICE)  # Makefile.common use $(SERVICE)
10  SERVICE = $(SERVICE_NAME)  SERVICE = $(SERVICE_NAME)
11    
12    include $(TOP_DIR)/tools/Makefile.common
13    
14    # SERVICE_DIR is defined in Makefile.common so we need to
15    # override it here. This is someting that needs to be fixed
16    # in the future so that the semantics of SERVICE_NAME AND
17    # SERVICE_DIR are better understood, and so that we can
18    # name directories lowercase and class files uppercase.
19    SERVICE_DIR = askkb
20  TPAGE_ARGS = --define kb_top=$(TARGET) \  TPAGE_ARGS = --define kb_top=$(TARGET) \
21          --define kb_runtime=$(DEPLOY_RUNTIME) \          --define kb_runtime=$(DEPLOY_RUNTIME) \
22          --define kb_service_name=$(SERVICE_NAME) \          --define kb_service_name=$(SERVICE_NAME) \
23            --define kb_service_dir=$(SERVICE_DIR) \
24          --define kb_service_port=$(SERVICE_PORT) \          --define kb_service_port=$(SERVICE_PORT) \
25          --define kb_psgi=$(SERVICE_NAME).psgi          --define kb_psgi=$(SERVICE_NAME).psgi
26    
 include $(TOP_DIR)/tools/Makefile.common  
27    
28  # to wrap scripts and deploy them to $(TARGET)/bin using tools in  # to wrap scripts and deploy them to $(TARGET)/bin using tools in
29  # the dev_container. right now, these vars are defined in  # the dev_container. right now, these vars are defined in
# Line 199  Line 207 
207  # generally concerned with the service start and stop scripts.  # generally concerned with the service start and stop scripts.
208    
209  deploy-service: deploy-dir-service deploy-monit deploy-libs  deploy-service: deploy-dir-service deploy-monit deploy-libs
210          $(TPAGE) $(TPAGE_ARGS) service/start_service.tt > $(TARGET)/services/$(SERVICE_NAME)/start_service          $(TPAGE) $(TPAGE_ARGS) service/start_service.tt > $(TARGET)/services/$(SERVICE_DIR)/start_service
211          chmod +x $(TARGET)/services/$(SERVICE_NAME)/start_service          chmod +x $(TARGET)/services/$(SERVICE_DIR)/start_service
212          $(TPAGE) $(TPAGE_ARGS) service/stop_service.tt > $(TARGET)/services/$(SERVICE_NAME)/stop_service          $(TPAGE) $(TPAGE_ARGS) service/stop_service.tt > $(TARGET)/services/$(SERVICE_DIR)/stop_service
213          chmod +x $(TARGET)/services/$(SERVICE_NAME)/stop_service          chmod +x $(TARGET)/services/$(SERVICE_DIR)/stop_service
214    
215  deploy-monit:  deploy-monit:
216          $(TPAGE) $(TPAGE_ARGS) service/process.tt > $(TARGET)/services/$(SERVICE_NAME)/process.$(SERVICE_NAME)          $(TPAGE) $(TPAGE_ARGS) service/process.tt > $(TARGET)/services/$(SERVICE_DIR)/process.$(SERVICE_DIR)
217    
218  # Deploying docs here refers to the deployment of documentation  # Deploying docs here refers to the deployment of documentation
219  # of the API. We'll include a description of deploying documentation  # of the API. We'll include a description of deploying documentation
# Line 213  Line 221 
221  # how to standardize and automate CLI documentation.  # how to standardize and automate CLI documentation.
222    
223  deploy-docs: build-docs  deploy-docs: build-docs
224          -mkdir -p $(TARGET)/services/$(SERVICE_NAME)/webroot/.          -mkdir -p $(TARGET)/services/$(SERVICE_DIR)/webroot/.
225          cp docs/*.html $(TARGET)/services/$(SERVICE_NAME)/webroot/.          cp docs/*.html $(TARGET)/services/$(SERVICE_DIR)/webroot/.
226    
227  # The location of the Client.pm file depends on the --client param  # The location of the Client.pm file depends on the --client param
228  # that is provided to the compile_typespec command. The  # that is provided to the compile_typespec command. The
# Line 251  Line 259 
259                  --url http://kbase.us/services/phispy \                  --url http://kbase.us/services/phispy \
260                  $(SERVICE_SPEC) lib                  $(SERVICE_SPEC) lib
261    
         -rm -r Bio  
262    
263  include $(TOP_DIR)/tools/Makefile.common.rules  include $(TOP_DIR)/tools/Makefile.common.rules

Legend:
Removed from v.1.1  
changed lines
  Added in v.1.2

MCS Webmaster
ViewVC Help
Powered by ViewVC 1.0.3