From f1b84f1fbe53d33ec1ea5946f23c23afa22e79f0 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Th=C3=A9ophile=20Bastian?= Date: Tue, 28 May 2019 21:37:16 +0200 Subject: [PATCH] Add `make tarball` --- Makefile | 22 ++++++++++++++++++++++ 1 file changed, 22 insertions(+) diff --git a/Makefile b/Makefile index 0eba16c..8920bc3 100644 --- a/Makefile +++ b/Makefile @@ -1,6 +1,7 @@ OCAMLBUILD=bapbuild -no-hygiene BAPBUNDLE=bapbundle ROOT_MODULE=dwarfsynth +TARBALL=dwarfsynth.tar.gz LIBDWARFW_SO=libdwarfw/build/libdwarfw.so LIBDWARFW_SO_MESON=libdwarfw/build/build.ninja @@ -22,10 +23,31 @@ $(LIBDWARFW_SO): $(ROOT_MODULE).plugin: $(OCAMLBUILD) $(ROOT_MODULE).plugin +############################################################################### .PHONY: install install: $(ROOT_MODULE).plugin $(BAPBUNDLE) install $< +############################################################################### .PHONY: clean clean: rm -rf _build + +############################################################################### +tarball: $(TARBALL) + +.PHONY: $(TARBALL) +$(TARBALL): + tar czf $(TARBALL) \ + --exclude=.git \ + --exclude=.gitignore \ + --exclude=libdwarfw/build \ + --exclude-backups \ + --exclude=*.bck \ + --exclude=*.bin \ + --exclude=*.o \ + --exclude=*.cmi \ + --exclude=*.cmx \ + --transform='s#^#dwarfsynth/#g' \ + DwarfSynth dwarfsynth.ml DwarfSynth.mlpack libdwarfw LICENSE Makefile \ + README.md synthesize_dwarf.sh _tags