]> Nishi Git Mirror - libw3.git/commitdiff
src archive
authornishi <nishi@d27a3e52-49c5-7645-884c-6793ebffc270>
Fri, 2 Feb 2024 02:30:08 +0000 (02:30 +0000)
committernishi <nishi@d27a3e52-49c5-7645-884c-6793ebffc270>
Fri, 2 Feb 2024 02:30:08 +0000 (02:30 +0000)
git-svn-id: file:///raid/svn-main/nishi-libw3/trunk@155 d27a3e52-49c5-7645-884c-6793ebffc270

Makefile

index 7ae8ed2605cf724c5758993bf01a9ff0808d18c4..ce62a238ae4369a62c5e79430f3f99b8425bc8b6 100644 (file)
--- a/Makefile
+++ b/Makefile
@@ -51,7 +51,7 @@ CFLAGS += -g -D__DEBUG__
 endif
 
 ifeq ($(WINDOWS),YES)
-.PHONY: all clean ./Library/w3.dll ./Example format
+.PHONY: all clean ./Library/w3.dll ./Example format src-archive archive
 
 ALL := ./Library/w3.dll ./Example
 
@@ -68,7 +68,7 @@ all: ./Library/W3Version.h ./w3.pc $(ALL)
 
 else
 
-.PHONY: all clean ./Library/libw3.so ./Library/libw3.a ./Example format
+.PHONY: all clean ./Library/libw3.so ./Library/libw3.a ./Example format src-archive archive
 
 ALL := ./Library/libw3.so ./Library/libw3.a ./Example
 
@@ -142,5 +142,14 @@ endif
        -/usr/lha/bin/lha a w3-$(VERSION).lzh w3-$(VERSION)
        rm -rf w3-$(VERSION)
 
+src-archive: clean ./Library/W3Version.h
+       rm -rf /tmp/w3-$(VERSION)
+       mkdir /tmp/w3-$(VERSION)
+       cp -rf * /tmp/w3-$(VERSION)/
+       cd /tmp && tar czvf /tmp/w3-$(VERSION).tar.gz w3-$(VERSION)
+       mv /tmp/w3-$(VERSION).tar.gz ./
+       cd /tmp && zip -rv /tmp/w3-$(VERSION).zip w3-$(VERSION)
+       mv /tmp/w3-$(VERSION).zip ./
+
 format:
        clang-format -i `find Library Example -name "*.h" -or -name "*.c"`