A two-dimensional time-dependent model is presented for upward-propagating internal gravity waves generated by an imposed thermal forcing in a layer of fluid with uniform background velocity and stable stratification under the anelastic approximation. The configuration studied is representative of a situation with deep or shallow latent heating in the lower atmosphere where the amplitude of the waves is small enough to allow linearization of the model equations. Approximate asymptotic time-dependent solutions, valid for late time, are obtained for the linearized equations in the form of an infinite series of terms involving Bessel functions. The asymptotic solution approaches a steady-amplitude state in the limit of infinite time. A weakly nonlinear analysis gives a description of the temporal evolution of the zonal mean flow velocity and temperature resulting from nonlinear interaction with the waves. The linear solutions show that there is a vertical variation of the wave amplitude which depends on the relative depth of the heating to the scale height of the atmosphere. This means that, from a weakly nonlinear perspective, there is a non-zero divergence of vertical momentum flux, and hence, a non-zero drag force, even in the absence of vertical shear in the background flow.