Synthetic approach toward the prepared compounds. (a) ammonium acetate, acetic acid, 110 °C, 5 h (1: 78%, 5: 80%); (b) ammonium acetate, acetic acid, 118 °C, 12 h (2: 96%, 4: 96%); (c) 1. ammonium acetate, acetic acid, 118 °C, 6 h; 2. (phenyl(pyridin-2-yl)methanone, 118 °C, 12 h (78%).