I am trying to find a portable way to replace this rule as given in AutoQt [1], which the autotools warn against using:
SUFFIXES = .moc.cpp %.moc.cpp:%.h $(MOC) -o $@ $< The following doesn't seem to work: SUFFIXES = .moc.cpp .moc.cpp:.h $(MOC) -o $@ $< The only other alternative I see is to enumerate a rule containing the actual file names for every single .h to .moc.cpp conversion, of which there are hundreds. Cheers, Brian Mingus [1] http://autoqt.sourceforge.net/