{
    "mode": "man",
    "parameter": "deb-src-rules",
    "section": "5",
    "url": "https://www.chedong.com/phpMan.php/man/deb-src-rules/5/json",
    "generated": "2026-06-02T17:54:24Z",
    "synopsis": "",
    "sections": {
        "NAME": {
            "content": "deb-src-rules - Debian source package rules file\n",
            "subsections": []
        },
        "SYNOPSIS": {
            "content": "",
            "subsections": [
                {
                    "name": "debian/rules",
                    "content": ""
                }
            ]
        },
        "DESCRIPTION": {
            "content": "This 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",
            "subsections": [
                {
                    "name": "clean",
                    "content": "Clean 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"
                },
                {
                    "name": "build-indep",
                    "content": "Build 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"
                },
                {
                    "name": "build-arch",
                    "content": "Build 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"
                },
                {
                    "name": "build",
                    "content": "Build 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"
                },
                {
                    "name": "binary-indep",
                    "content": "Build 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"
                },
                {
                    "name": "binary-arch",
                    "content": "Build 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"
                },
                {
                    "name": "binary",
                    "content": "Build 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"
                }
            ]
        },
        "SEE ALSO": {
            "content": "dpkg-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)",
            "subsections": []
        }
    },
    "summary": "deb-src-rules - Debian source package rules file",
    "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"
        }
    ]
}