generalized makefile and display-page scripth