make dist

This commit is contained in:
Philippe PITTOLI 2024-06-21 21:31:03 +02:00
parent c38f210854
commit 81142cbbe5

View File

@ -63,18 +63,18 @@ serve-doc:
PACKAGE ?= libhexa PACKAGE ?= libhexa
VERSION ?= 0.1.0 VERSION ?= 0.1.0
PKG = $(PACKAGE)-$(VERSION) PKG = $(PACKAGE)-$(VERSION)
dist-dir:
[ -d $(PKG) ] || ln -s . $(PKG)
$(PKG).tar.gz: dist-dir $(PKG).tar.gz: dist-dir
tar zcf $@ \ tar zcf $@ \
$(PKG)/src \ $(PKG)/src \
$(PKG)/build.zig \ $(PKG)/build.zig* \
$(PKG)/libhexa.h \ $(PKG)/libhexa.h \
$(PKG)/makefile* \ $(PKG)/hexa.pc \
$(PKG)/README* $(PKG)/makefile*
dist-rm-dir: $(PKG):; ln -s . $(PKG)
rm $(PKG) dist-dir: $(PKG)
dist-gz: $(PACKAGE)-$(VERSION).tar.gz dist-rm-dir:; rm $(PKG)
dist-gz: $(PKG).tar.gz
dist: dist-gz dist-rm-dir dist: dist-gz dist-rm-dir
# You can add your specific instructions there. # You can add your specific instructions there.