Applying adhesives or glue to surfaces of wood to be joined