How peff/mfm works
Main Components Identification
The system should be represented with these key components:
a) Core Engine:
• Central Perl Script (mfm.pl)
• Core Libraries (lib/MFM/*.pm)
b) Rule System:
• Rule Templates Directory Structure
• Base Rules
• Language-Specific Rules (C, Perl, Shell, LaTeX)
• Documentation Rules
c) Bootstrap System
• Bootstrap Script
• Configuration System
Component Relationships and Flow
a) Primary Processing Flow:
Input Files → MFM Core Engine → Rule Processing → Makefile Generation
b) Rule Template Hierarchy:
Base Rules → Language-Specific Rules → Custom Rules
Detailed Component Breakdown
a) Core Engine Components:
• MFM.pm (Main library)
• File.pm (File handling)
• Path.pm (Path management)
• Target.pm (Target processing)
b) Rule Categories (Show as grouped components):
• Base Rules (rules/base/*)
• Language Rules (C, Perl, Shell, LaTeX)
• Documentation Rules (AsciiDoc, HTML, PDF)
• Installation Rules
c) Configuration System:
• conf-* files
• Bootstrap mechanism
The configuration and bootstrap mechanism
Remember to show how the system achieves its main goals:
• Portable Makefile generation
• Minimal user effort
• Extensibility through rule templates
This system design should clearly illustrate how MFM transforms high-level build specifications into portable Makefiles through its rule-based processing system.