Modified makefile for automatic publication