make cmd to header and main files