forked from kbaseattic/typecomp
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Makefile
50 lines (34 loc) · 1.14 KB
/
Makefile
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
TOP_DIR = ../..
include $(TOP_DIR)/tools/Makefile.common
DEPLOY_RUNTIME ?= /kb/runtime
TARGET ?= /kb/deployment
SERVICE_NAME = typecomp
SERVICE = $(SERVICE_NAME)
SRC_PERL = $(wildcard scripts/*.pl)
BIN_PERL = $(addprefix $(BIN_DIR)/,$(basename $(notdir $(SRC_PERL))))
LDEST = lib/Bio/KBase/KIDL
all: $(LDEST)/typedoc.pm $(LDEST)/erdoc.pm bin
$(LDEST)/typedoc.pm: typedoc.yp
yapp -o $(LDEST)/typedoc.pm typedoc.yp
$(LDEST)/erdoc.pm: erdoc.yp
yapp -o $(LDEST)/erdoc.pm erdoc.yp
what:
@echo $(BIN_PERL)
deploy-service: deploy
deploy-client: deploy
deploy: deploy-dir-service deploy-scripts deploy-libs deploy-docs
deploy-docs:
-mkdir -p doc
$(DEPLOY_RUNTIME)/bin/pod2html -t "KBase Type Compiler" scripts/compile_typespec.pl > doc/compile_typespec.html
$(DEPLOY_RUNTIME)/bin/pod2html -t "KBase Java Client Compiler" scripts/gen_java_client.pl > doc/gen_java_client.html
cp doc/*html $(SERVICE_DIR)/webroot/.
bin: $(BIN_PERL)
# test targets
test: test-client test-scripts test-service
test-client:
@echo "client tests not defined"
test-scripts:
prove
test-service:
@echo "service tests not defined"
include $(TOP_DIR)/tools/Makefile.common.rules