Skip to content

Commit

Permalink
inserted mkdir bin to auxprogs makefile in case the main Makefile has…
Browse files Browse the repository at this point in the history
…n't created the bin dir yet
  • Loading branch information
MarioStanke committed Mar 29, 2019
1 parent 01eaaf4 commit 058a8a0
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 1 deletion.
3 changes: 2 additions & 1 deletion auxprogs/bam2hints/Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,8 @@ LINK.cc = g++
# $@: full target name of current target.
# $<: .c file of target.
bam2hints : $(OBJECTS)
$(LINK.cc) $(CXXFLAGS) $(LDFLAGS) -o $@ $(OBJECTS) $(LIBS)
$(LINK.cc) $(CXXFLAGS) $(LDFLAGS) -o $@ $(OBJECTS) $(LIBS)
mkdir -p ../../bin
cp bam2hints ../../bin

all:$(OBJECTS) # Compiles each foo.cc into foo.o
Expand Down
1 change: 1 addition & 0 deletions auxprogs/bam2wig/Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -26,6 +26,7 @@ CC=gcc

$(PROGRAM) : bam2wig.o
$(CC) $(CFLAGS) $^ -o $@ $(LIBS) -lbz2 -llzma
mkdir -p ../../bin
cp bam2wig ../../bin/bam2wig

bam2wig.o : bam2wig.c
Expand Down
1 change: 1 addition & 0 deletions auxprogs/homGeneMapping/src/Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -40,6 +40,7 @@ all: homGeneMapping

homGeneMapping: main.cc $(OBJS)
$(CC) $(CFLAGS) $(CPPFLAGS) -o $@ $^ $(INCLS) $(LIBS)
mkdir -p ../../../bin/
cp homGeneMapping ../../../bin/homGeneMapping

clean:
Expand Down

0 comments on commit 058a8a0

Please sign in to comment.