Skip to content

Commit

Permalink
move wig2png source and build system into a wig2png subdirectory.
Browse files Browse the repository at this point in the history
Also take the js minification and twiki stuff out of its Makefile.in
and put it in a Makefile.deploy file, still in the root.
  • Loading branch information
rbuels committed Mar 7, 2012
1 parent d4b458c commit b4c1e7e
Show file tree
Hide file tree
Showing 10 changed files with 26 additions and 194 deletions.
5 changes: 3 additions & 2 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -10,5 +10,6 @@ bin/wig2png
*TODO.txt
Makefile
/sample_data/json
./config.log
./config.status
wig2png/config.log
wig2png/config.status
wig2png/src/config.h
25 changes: 2 additions & 23 deletions Makefile.in → Makefile.deploy
Original file line number Diff line number Diff line change
@@ -1,33 +1,14 @@
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)
all: minify-js

clean:
rm $(WIG2PNG_TARGET)

jbrowse: all
jbrowse:
$(MAKE) -f $(TWIKI_PLUGIN_MAKEFILE) all

$(WIG2PNG_TARGET): $(WIG2PNG_SRCFILES)
$(CXX) $(CXXARGS) -o $@ $(WIG2PNG_SRCFILES)

minify-js: $(JSMIN_TARGET)

$(JSMIN_TARGET): $(JS_SRCFILES)
Expand All @@ -38,5 +19,3 @@ $(JSMIN_TARGET): $(JS_SRCFILES)
fi

.PHONY: all clean jbrowse minify-js

.SECONDARY:
169 changes: 0 additions & 169 deletions src/config.h

This file was deleted.

21 changes: 21 additions & 0 deletions wig2png/Makefile.in
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
BINDIR = ../bin
SRCDIR = src

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

all: $(WIG2PNG_TARGET)

clean:
rm $(WIG2PNG_TARGET)

$(WIG2PNG_TARGET): $(WIG2PNG_SRCFILES)
$(CXX) $(CXXARGS) -o $@ $(WIG2PNG_SRCFILES)

.PHONY: all clean
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.

0 comments on commit b4c1e7e

Please sign in to comment.