Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
A few minor fixes and enhancements Changes: https://github.com/lh3/seqtk/tags
- Loading branch information
Jason W. Bacon
authored and
Jason W. Bacon
committed
Dec 18, 2021
1 parent
ddc9eb4
commit 02105a9
Showing
3 changed files
with
29 additions
and
17 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,3 +1,3 @@ | ||
TIMESTAMP = 1522780777 | ||
SHA256 (lh3-seqtk-1.2-8-gd210c57_GH0.tar.gz) = 557317aab7f8cc306a98cd1148449f1e2edd7cd7c78ad5254ba955dfee518fa0 | ||
SIZE (lh3-seqtk-1.2-8-gd210c57_GH0.tar.gz) = 21166 | ||
TIMESTAMP = 1639855187 | ||
SHA256 (lh3-seqtk-v1.3_GH0.tar.gz) = 5a1687d65690f2f7fa3f998d47c3c5037e792f17ce119dab52fff3cfdca1e563 | ||
SIZE (lh3-seqtk-v1.3_GH0.tar.gz) = 21196 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,20 +1,35 @@ | ||
--- Makefile.orig 2017-11-07 19:42:14 UTC | ||
--- Makefile.orig 2018-06-18 00:15:09 UTC | ||
+++ Makefile | ||
@@ -1,10 +1,11 @@ | ||
@@ -1,14 +1,23 @@ | ||
-CC=gcc | ||
-CFLAGS=-g -Wall -O2 -Wno-unused-function | ||
+CC ?= gcc | ||
+CFLAGS ?= -g -Wall -O2 -Wno-unused-function | ||
+LDFLAGS += -lz -lm | ||
-BINDIR=/usr/local/bin | ||
|
||
-all:seqtk | ||
+all: seqtk | ||
+# Respect user's build environment by using ?= to set defaults for variables | ||
+# not set in the env or make arguments. Use += to add essential args. | ||
|
||
-seqtk:seqtk.c khash.h kseq.h | ||
- $(CC) $(CFLAGS) seqtk.c -o $@ -lz -lm | ||
+CC ?= gcc | ||
+CFLAGS ?= -g -Wall -O2 -Wno-unused-function | ||
+LDFLAGS += -lz -lm | ||
+PREFIX ?= /usr/local | ||
+MKDIR ?= mkdir | ||
+INSTALL ?= install | ||
+# DESTDIR is empty by default to install straight to PREFIX | ||
|
||
-install:all | ||
- install seqtk $(BINDIR) | ||
+all: seqtk | ||
|
||
+seqtk: seqtk.c khash.h kseq.h | ||
+ $(CC) $(CFLAGS) seqtk.c -o $@ $(LDFLAGS) | ||
|
||
+ | ||
+install: all | ||
+ $(MKDIR) -p $(DESTDIR)$(PREFIX)/bin | ||
+ $(INSTALL) -c -m 0755 seqtk $(DESTDIR)$(PREFIX)/bin | ||
+ | ||
clean: | ||
- rm -fr gmon.out *.o ext/*.o a.out seqtk trimadap *~ *.a *.dSYM session* | ||
+ rm -fr gmon.out *.o ext/*.o a.out seqtk trimadap *~ *.a *.dSYM session* |