{
    "content": [
        {
            "type": "text",
            "text": "# deb-src-rules(5) (man)\n\n**Summary:** deb-src-rules - Debian source package rules file\n\n## See Also\n\n- dpkg-architecture(1)\n- dpkg-vendor(1)\n- dpkg-buildflags(1)\n- dpkg-parsechangelog(1)\n- shlibdeps(1)\n- dpkg-gencontrol(1)\n- dpkg-deb(1)\n- dpkg-distaddfile(1)\n\n## Section Outline\n\n- **NAME** (2 lines)\n- **SYNOPSIS** (1 lines) — 1 subsections\n  - debian/rules (1 lines)\n- **DESCRIPTION** (8 lines) — 7 subsections\n  - clean (3 lines)\n  - build-indep (5 lines)\n  - build-arch (4 lines)\n  - build (4 lines)\n  - binary-indep (4 lines)\n  - binary-arch (4 lines)\n  - binary (4 lines)\n- **SEE ALSO** (6 lines)\n\n## Full Content\n\n### NAME\n\ndeb-src-rules - Debian source package rules file\n\n### SYNOPSIS\n\n#### debian/rules\n\n### DESCRIPTION\n\nThis file contains the instructions necessary to build the binary packages from the source\npackage.\n\nThe debian/rules file is an executable Makefile, with a shebang that is usually set to\n\"#!/usr/bin/make -f\".\n\nIt must support the following make targets:\n\n#### clean\n\nClean up the source tree, by undoing any change done by any of the build and binary\ntargets.  This target will be called with root privileges.\n\n#### build-indep\n\nBuild architecture independent files required to build any architecture independent\nbinary package.  If there are no architecture independent binary packages to generate,\nthe target must still exist but do nothing.  This target must not require root\nprivileges.\n\n#### build-arch\n\nBuild architecture dependent files required to build any architecture dependent binary\npackage.  If there are no architecture dependent binary packages to generate, the target\nmust still exist but do nothing.  This target must not require root privileges.\n\n#### build\n\nBuild architecture independent and dependent files, either by depending (at least\ntransitively) on build-indep and/or build-arch or by inlining what those targets would\ndo.  This target must not require root privileges.\n\n#### binary-indep\n\nBuild architecture independent binary packages.  This target must depend (at least\ntransitively) on either build-indep or build.  This target will be called with root\nprivileges.\n\n#### binary-arch\n\nBuild architecture dependent binary packages.  This target must depend (at least\ntransitively) on either build-arch or build.  This target will be called with root\nprivileges.\n\n#### binary\n\nBuild architecture independent and dependent binary packages, either by depending (at\nleast transitively) on binary-indep and/or binary-arch or by inlining what those targets\nwould do.  This target will be called with root privileges.\n\n### SEE ALSO\n\ndpkg-architecture(1), dpkg-vendor(1), dpkg-buildflags(1), dpkg-parsechangelog(1), dpkg-\nshlibdeps(1), dpkg-gencontrol(1), dpkg-deb(1), dpkg-distaddfile(1).\n\n\n\n1.21.1                                       2025-09-09                             deb-src-rules(5)\n\n"
        }
    ],
    "structuredContent": {
        "command": "deb-src-rules",
        "section": "5",
        "mode": "man",
        "summary": "deb-src-rules - Debian source package rules file",
        "synopsis": "",
        "tldr_summary": null,
        "tldr_examples": [],
        "tldr_source": null,
        "flags": [],
        "examples": [],
        "see_also": [
            {
                "name": "dpkg-architecture",
                "section": "1",
                "url": "https://www.chedong.com/phpMan.php/man/dpkg-architecture/1/json"
            },
            {
                "name": "dpkg-vendor",
                "section": "1",
                "url": "https://www.chedong.com/phpMan.php/man/dpkg-vendor/1/json"
            },
            {
                "name": "dpkg-buildflags",
                "section": "1",
                "url": "https://www.chedong.com/phpMan.php/man/dpkg-buildflags/1/json"
            },
            {
                "name": "dpkg-parsechangelog",
                "section": "1",
                "url": "https://www.chedong.com/phpMan.php/man/dpkg-parsechangelog/1/json"
            },
            {
                "name": "shlibdeps",
                "section": "1",
                "url": "https://www.chedong.com/phpMan.php/man/shlibdeps/1/json"
            },
            {
                "name": "dpkg-gencontrol",
                "section": "1",
                "url": "https://www.chedong.com/phpMan.php/man/dpkg-gencontrol/1/json"
            },
            {
                "name": "dpkg-deb",
                "section": "1",
                "url": "https://www.chedong.com/phpMan.php/man/dpkg-deb/1/json"
            },
            {
                "name": "dpkg-distaddfile",
                "section": "1",
                "url": "https://www.chedong.com/phpMan.php/man/dpkg-distaddfile/1/json"
            }
        ],
        "section_outline": [
            {
                "name": "NAME",
                "lines": 2,
                "subsections": []
            },
            {
                "name": "SYNOPSIS",
                "lines": 1,
                "subsections": [
                    {
                        "name": "debian/rules",
                        "lines": 1
                    }
                ]
            },
            {
                "name": "DESCRIPTION",
                "lines": 8,
                "subsections": [
                    {
                        "name": "clean",
                        "lines": 3
                    },
                    {
                        "name": "build-indep",
                        "lines": 5
                    },
                    {
                        "name": "build-arch",
                        "lines": 4
                    },
                    {
                        "name": "build",
                        "lines": 4
                    },
                    {
                        "name": "binary-indep",
                        "lines": 4
                    },
                    {
                        "name": "binary-arch",
                        "lines": 4
                    },
                    {
                        "name": "binary",
                        "lines": 4
                    }
                ]
            },
            {
                "name": "SEE ALSO",
                "lines": 6,
                "subsections": []
            }
        ]
    }
}