// Copyright (C) 2016 The Qt Company Ltd.
// SPDX-License-Identifier: LicenseRef-Qt-Commercial OR GFDL-1.3-no-invariants-only

//! [0]
moc_%.cpp: %.h
        moc $(DEFINES) $(INCPATH) $< -o $@
//! [0]


//! [1]
moc_foo.cpp: foo.h
        moc $(DEFINES) $(INCPATH) $< -o $@
//! [1]


//! [2]
foo.o: foo.moc

foo.moc: foo.cpp
        moc $(DEFINES) $(INCPATH) -i $< -o $@
//! [2]
