forked from koendv/hyp2mat
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Makefile.am
34 lines (29 loc) · 1.11 KB
/
Makefile.am
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
# used by automake
ACLOCAL_AMFLAGS=-I m4
SUBDIRS=lib src doc matlab eagle
README: README.md
tr -d '#[]' < $< > $@
EXTRA_DIST=README.md
# create a git archive without generated files
tarball:
git archive --format=tar --prefix=hyp2mat-@PACKAGE_VERSION@/ HEAD | bzip2 > hyp2mat-@[email protected]
# create a tarball with all generated files inside
tarball-dist: all
$(MAKE) -C doc
git archive --format=tar --prefix=hyp2mat-@PACKAGE_VERSION@/ HEAD > hyp2mat-@[email protected]
echo configure > .tar-files
echo doc/hyp2mat.pdf >> .tar-files
echo doc/hyp2mat.1 >> .tar-files
echo lib/parse.cc >> .tar-files
echo lib/parse.h >> .tar-files
echo lib/scan.cc >> .tar-files
echo src/cmdline.c >> .tar-files
echo src/cmdline.h >> .tar-files
echo aclocal.m4 >> .tar-files
echo libtool >> .tar-files
find . -name '*.in' >> .tar-files
find . -path './config/*' -or -path './m4/*' >> .tar-files
tar --append -f hyp2mat-@[email protected] --dereference --transform 's,^,hyp2mat-@PACKAGE_VERSION@/,' --files-from .tar-files
bzip2 -f hyp2mat-@[email protected]
rm .tar-files
.PHONY: tarball tarball-dist