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
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
-/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"`