From e85a013ebbab1c347bf8bdbf17e5e2505e9750b3 Mon Sep 17 00:00:00 2001 From: nishi Date: Fri, 2 Feb 2024 02:30:08 +0000 Subject: [PATCH] src archive git-svn-id: file:///raid/svn-main/nishi-libw3/trunk@155 d27a3e52-49c5-7645-884c-6793ebffc270 --- Makefile | 13 +++++++++++-- 1 file changed, 11 insertions(+), 2 deletions(-) diff --git a/Makefile b/Makefile index 7ae8ed2..ce62a23 100644 --- 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"` -- 2.43.0