forked from GMOD/jbrowse
-
Notifications
You must be signed in to change notification settings - Fork 3
/
Makefile.in
42 lines (30 loc) · 1.04 KB
/
Makefile.in
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
BINDIR = bin
SRCDIR = src
JSDIR = js
JARDIR = jar
CXX = @CXX@
CXXFLAGS = @CXXFLAGS@ -include $(SRCDIR)/config.h
LDFLAGS = @LDFLAGS@
LIBS = @LIBS@
CXXARGS = $(CXXFLAGS) $(LDFLAGS) $(LIBS)
WIG2PNG_TARGET = $(BINDIR)/wig2png
WIG2PNG_SRCFILES = $(SRCDIR)/wig2png.cc $(SRCDIR)/opts_list.cc
JSMIN_TARGET = jbrowse.js
JS_SRCFILES = $(wildcard $(JSDIR)/*.js)
TWIKI_PLUGIN_MAKEFILE = twiki/JBrowsePlugin/Makefile.jbrowse
all: $(WIG2PNG_TARGET)
clean:
rm $(WIG2PNG_TARGET)
jbrowse: all
$(MAKE) -f $(TWIKI_PLUGIN_MAKEFILE) all
$(WIG2PNG_TARGET): $(WIG2PNG_SRCFILES)
$(CXX) $(CXXARGS) -o $@ $(WIG2PNG_SRCFILES)
minify-js: $(JSMIN_TARGET)
$(JSMIN_TARGET): $(JS_SRCFILES)
java -jar $(JARDIR)/shrinksafe.jar $^ > $@
if grep -q '<!-- js_source_files -->' index.html; then \
mv index.html index-debug.html; \
perl -pe 'BEGIN { undef $$/; }; s#<!-- js_source_files -->.*<!-- js_source_files --># <script type="text/javascript" src="$(JSMIN_TARGET)"></script>\n#ms' index-debug.html > index.html; \
fi
.PHONY: all clean jbrowse minify-js
.SECONDARY: