- The `test/vectors.h` header. Generating it requires Libsodium. Go
to `test/gen/`, then run `make`.
-
- The html version of the manual, generated by the `doc/man2html.sh`
script. You will need mandoc.
-To generate a tarball, simply type `make tarball`. By default, it
-will generate `../monocypher-master.tar.gz` (yes, in the parent
-directory). You can override those defaults thus:
-
- make tarball TARBALL_VERSION=x.y.z TARBALL_DIR=../my_tarballs
-
-This will create a `../my_tarballs/monocypher-x.y.z.tar.gz`, archive
-that contains a single `monocypher-x.y.z` folder with everything in
-it.
+To generate a tarball, simply type `make tarball`. It will make a
+tarball with a name that matches the current version (as written in
+VERSION.md), in the current directory.
PKGCONFIG=$(DESTDIR)/$(PREFIX)/lib/pkgconfig
MAN_DIR=$(DESTDIR)/$(PREFIX)/share/man/man3
-# override with x.y.z when making a proper tarball
TARBALL_VERSION=$$(cat VERSION.md)
-# avoids changing the current directory while we archive it
-TARBALL_DIR=..
+TARBALL_DIR=.
.PHONY: all library static-library dynamic-library \
install install-doc \
tarball: tests/vectors.h
doc/man2html.sh
+ touch $(TARBALL_DIR)/monocypher-$(TARBALL_VERSION).tar.gz
tar -czvf $(TARBALL_DIR)/monocypher-$(TARBALL_VERSION).tar.gz \
-X tarball_ignore \
- --transform='flags=r;s|^.|monocypher-$(TARBALL_VERSION)|' .
+ --transform='flags=r;s|^.|monocypher-'$(TARBALL_VERSION)'|' .