[Top][All Lists]

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Make a library installable? → conf

From: Arne Babenhauserheide
Subject: Re: Make a library installable? → conf
Date: Sun, 12 May 2019 22:18:09 +0200
User-agent: mu4e 1.2.0; emacs 26.1

HiPhish <address@hidden> writes:

> Hello Schemers,
> A while ago I presented my MessagePack implementation for Guile[1] here and I 
> want to make it available to users. Guile has no dedicated package manager, 
> so 
> it's either manual or Guix, and I would like to support both. What it the 
> best 
> way of doing it?
> I guess I could use GNU Autotools instead of a manually written makefile, but 
> I 
> would rather stick to what I know and is simple for such a simple project.

The best way I see is actually the full autotools toolchain. If you
write the simple thing, you’ll eventually be implementing all the
autotools stuff yourself, down to cross-compilation and other dark
corners, which is likely to be more work than going the autotools route.

If you want to avoid going through manual setup, you could give my conf
tool a try: it creates a basic autotools setup you can modify.

    conf new myproj --lang guile
    cd myproj
    ./ && ./configure --prefix ~/.local && make && make install

    cd /; guile -c '(import (myproj hello))(hello-world)'; cd -

It isn’t perfect yet, but it should have you set up within minutes.

It also gives the user easy-to-use uninstall:

    make uninstall


Get it via

wget && tar xf 
conf-0.2.2.tar.gz && cd conf-0.2.2 && ./ && ./configure --prefix 
~/.local && make && make install

> [1]

Best wishes,
Unpolitisch sein
heißt politisch sein
ohne es zu merken

Attachment: signature.asc
Description: PGP signature

reply via email to

[Prev in Thread] Current Thread [Next in Thread]