As this is an accounting question, you may want to consult with an accountant for information specific to your unique situation. As a general matter, however, revenue recognition can be done either on a prorated basis dependent upon the percentage of completion, or once the project is substantially completed, following the completed-contract method.
If you have questions about making Construction Contracts or structuring your payment terms, ask a lawyer.