The fabrication of a polydimethylsiloxane (PDMS)-based bilayer device for the production of combinatorial libraries in water-in-oil emulsions (plugs) is presented here. The necessary hardware and software required to automate plug production are detailed in the protocol, and the production of a quantitative library of fluorescent plugs is also demonstrated.