attah / ppm2pwg

Misc printing utilities
GNU General Public License v3.0
18 stars 9 forks source link

make: *** No rule to make target 'install'. Stop. #26

Closed milahu closed 3 months ago

milahu commented 3 months ago

the missing install rule makes it 1% harder to package ppm2pwg

see also ppm2pwg-git/PKGBUILD

package() {
    cd "${srcdir}/ppm2pwg"

    utils=(
        ppm2pwg
        pwg2ppm
        pdf2printable
        baselinify
        ippposter
    )

    for util in "${utils[@]}"; do
        install -D -m755 "$util" "${pkgdir}/usr/bin/$util"
    done
}
attah commented 3 months ago

The thing here is nobody talked to me about packaging. I really dislike software instructing people to make install stuff left right and center and then not provide a way to uninstall. And i understand them; I don't feel like writing code that removes stuff on peoples' systems either.

The solution is of course proper packaging - and as a hand-off point of what build artifacts are actually deliverables i guess make install is still the standard.

It was surprisingly hard to find any best-practices whatsoever... Google's new AI engine just pigeon-holes any search to yield the most basic of Makefile results, and nothing more advanced, no matter the additional keywords used. So it is just a simple cp for now.