move upload to Makefile