add dist target

Tue, 25 Feb 2025 18:22:55 +0100

author
Mike Becker <universe@uap-core.de>
date
Tue, 25 Feb 2025 18:22:55 +0100
changeset 43
f58fd8461e10
parent 42
e0f3d41ae44b
child 44
de22ded6d50a

add dist target

fixes #607

.hgignore file | annotate | diff | comparison | revisions
Makefile file | annotate | diff | comparison | revisions
README file | annotate | diff | comparison | revisions
--- a/.hgignore	Tue Feb 25 17:56:54 2025 +0100
+++ b/.hgignore	Tue Feb 25 18:22:55 2025 +0100
@@ -1,4 +1,5 @@
 syntax:glob
 .idea/
 build/
+dist/
 config.mk
--- a/Makefile	Tue Feb 25 17:56:54 2025 +0100
+++ b/Makefile	Tue Feb 25 18:22:55 2025 +0100
@@ -21,10 +21,22 @@
 # OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
 # OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
 
+VERSION=1.1.0-dev
+
 all: compile FORCE
 
+dist: FORCE
+	mkdir -p dist/repoheat
+	cp LICENSE README configure Makefile dist/repoheat/
+	cp -R src dist/repoheat/
+	cd dist && tar -czf repoheat-$(VERSION).tar.gz repoheat
+
 clean: FORCE
 	rm -Rf build
+	rm -Rf dist
+
+distclean: clean FORCE
+	rm -f config.mk
 
 compile: config.mk build FORCE
 	@cd src && $(MAKE)
--- a/README	Tue Feb 25 17:56:54 2025 +0100
+++ b/README	Tue Feb 25 18:22:55 2025 +0100
@@ -1,13 +1,16 @@
-After cloning the repository, execute
-
-    ./configure --release
-
-to create a build configuration. Then execute
+After cloning the repository, or extracting the source tarball,
+simply execute
 
     make
 
 to build the software.
 
+Optionally, before calling make, you can execute ./configure
+with your favorite settings.
+By default, make will execute
+
+    ./configure --release
+
 You will find the repoheat binary in the build directory.
 
 Execute ./repoheat -h to show the usage information.

mercurial