PAGE_ARGS = --define kb_top=$(TARGET) --define kb_runtime=$(DEPLOY_RUNTIME) --define kb_service_name=$(SERVICE_NAME) --define kb_service_dir=$(SERVICE_DIR) --define kb_service_port=$(SERVICE_PORT)
deploy-service:
mkdir -p $(TARGET)/services/$(SERVICE_DIR)
$(TPAGE) $(TPAGE_ARGS) service/start_service.tt > $(TARGET)/services/$(SERVICE_DIR)/start_service
chmod +x $(TARGET)/services/$(SERVICE_DIR)/start_service
$(TPAGE) $(TPAGE_ARGS) service/stop_service.tt > $(TARGET)/services/$(SERVICE_DIR)/stop_service
chmod +x $(TARGET)/services/$(SERVICE_DIR)/stop_service
echo "done executing deploy-service target"
So what happens here is there is a template file called start_service.tt. TPAGE_ARGS get expanded in the template to become the start_service script. The benefit to this is that we can change the template and the change becomes somewhat globally implemented thought out the set of all services (that follow convention).
I don't mind working with you and doing some slight restructuring of your Makefile, if you want to schedule a time to work together.
t
Hi Tom,
I do not pretend to be a make expert. This project is the first time that I have used it. Do you have an example of what you like me to change it to?
Thanks,
Jason
_______________________________________________
Release-team mailing list
Release-team@lists.kbase.us
https://lists.kbase.us/mailman/listinfo/release-team