-
Notifications
You must be signed in to change notification settings - Fork 5
Expand file tree
/
Copy pathMakefile
More file actions
37 lines (28 loc) · 763 Bytes
/
Makefile
File metadata and controls
37 lines (28 loc) · 763 Bytes
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
package=genometools-scripts
prefix=/usr/local
bindir=$(prefix)/bin
datadir=$(prefix)/share
docdir=$(datadir)/doc/$(package)
bin_SCRIPTS=$(shell ls gt-*)
doc_DATA=CONTRIBUTORS LICENSE README.md
all:
clean:
readme: README.md
README.md: README.md.in ${bin_SCRIPTS}
cp README.md.in README.md
for f in ${bin_SCRIPTS} ; do \
echo "### $$f" >> README.md; \
echo '```' >> README.md; \
./$$f -h >> README.md; \
echo '```' >> README.md; \
done
install:
install -d $(DESTDIR)$(bindir)
install $(bin_SCRIPTS) $(DESTDIR)$(bindir)
install -d $(DESTDIR)$(docdir)
install $(doc_DATA) $(DESTDIR)$(docdir)
.PHONY: all clean install test
test:
cd testsuite; env -i PATH=$$PATH:`pwd`/../_gt/bin ./testsuite.rb
testclean:
rm -rf testsuite/stest_testsuite