forked from tseemann/PEAR
-
Notifications
You must be signed in to change notification settings - Fork 1
/
Makefile
36 lines (29 loc) · 767 Bytes
/
Makefile
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
package = pear
version = 0.0.1
tarname = $(package)
distdir = $(tarname)-$(version)
all clean install pear:
$(MAKE) -C src $@
dist: $(distdir).tar.gz
$(distdir).tar.gz: FORCE $(distdir)
tar chof - $(distdir) |\
gzip -9 -c >$(distdir).tar.gz
rm -rf $(distdir)
$(distdir):
mkdir -p $(distdir)/src
cp Makefile $(distdir)
cp README $(distdir)
cp src/Makefile $(distdir)/src
cp src/pear.c $(distdir)/src
cp src/fastq.c $(distdir)/src
cp src/fastq.h $(distdir)/src
distcheck: $(distdir).tar.gz
gzip -cd $+ | tar xvf -
$(MAKE) -C $(distdir) all clean
rm -rf $(distdir)
@echo "*** Package $(distdir).tar.gz\
ready for distribution."
FORCE:
-rm $(distdir).tar.gz &> /dev/null
-rm -rf $(distdir) &> /dev/null
.PHONY: FORCE all clean dist distcheck