HOSTNAME = sumarit.nobis-crew.org
WEBPATH = /var/www/softwares

all:
	make -C win32 dist
	make -C linux dist

clean:
	rm -f *.zip
	make -C win32 clean
	make -C linux clean

rebuild: clean all

release: all
	-ssh $(HOSTNAME) rm $(WEBPATH)/cd-tool/*
	-ssh $(HOSTNAME) rm $(WEBPATH)/luapatch/*
	scp cd-tool*.zip $(HOSTNAME):$(WEBPATH)/cd-tool
	scp ../FAQ-cd.txt $(HOSTNAME):$(WEBPATH)/cd-tool/README.txt
	scp ../COPYING $(HOSTNAME):$(WEBPATH)/cd-tool
	scp *.lua $(HOSTNAME):$(WEBPATH)/cd-tool
	scp luapatch* $(HOSTNAME):$(WEBPATH)/luapatch
	scp ../README-LuaPatch.txt $(HOSTNAME):$(WEBPATH)/luapatch/README.txt