fixed makefile for lattices