One of the remarkable phenomena in the laser-matter interaction is the extremely efficient energy transfer to $$\gamma $$
γ
-photons, that appears as a collimated $$\gamma $$
γ
-ray beam. For interactions of realistic laser pulses with matter, existence of an amplified spontaneous emission pedestal plays a crucial role, since it hits the target prior to the main pulse arrival, leading to a cloud of preplasma and drilling a narrow channel inside the target. These effects significantly alter the process of $$\gamma $$
γ
-photon generation. Here, we study this process by importing the outcome of magnetohydrodynamic simulations of the pedestal-target interaction into particle-in-cell simulations for describing the $$\gamma $$
γ
-photon generation. It is seen that target tailoring prior the laser-target interaction plays an important positive role, enhancing the efficiency of laser pulse coupling with the target, and generating high energy electron-positron pairs. It is expected that such a $$\gamma $$
γ
-photon source will be actively used in various applications in nuclear photonics, material science and astrophysical processes modelling.