tAdd makefile for portability - cdb - Constant database manipulation utility
 (HTM) git clone git://git.z3bra.org/cdb.git
 (DIR) Log
 (DIR) Files
 (DIR) Refs
 (DIR) README
 (DIR) LICENSE
       ---
 (DIR) commit 89ba7b25c8c30471d0801894c0615321a0e6de2d
 (DIR) parent ae1fd5f5b5203f1cba0abd83b36367973e9667cf
 (HTM) Author: Willy Goiffon <dev@z3bra.org>
       Date:   Wed, 31 Aug 2022 22:56:15 +0200
       
       Add makefile for portability
       
       Diffstat:
         M README                              |       4 ++--
         A makefile                            |      27 +++++++++++++++++++++++++++
       
       2 files changed, 29 insertions(+), 2 deletions(-)
       ---
 (DIR) diff --git a/README b/README
       t@@ -34,7 +34,7 @@ Installation
        -----
        Edit config.mk as needed, then build/install with the following commands:
        
       -        mk
       -        mk install
       +        make
       +        make install
        
        [0]: http://cr.yp.to/cdb.html
 (DIR) diff --git a/makefile b/makefile
       t@@ -0,0 +1,27 @@
       +-include config.mk
       +
       +.SUFFIXES: .go
       +
       +all: cdb
       +
       +.go:
       +        ${GO} build -o $@ $<
       +
       +clean:
       +        rm -f cdb
       +
       +install: cdb cdb.1 cdb.5
       +        mkdir -p ${DESTDIR}${PREFIX}/bin
       +        cp cdb ${DESTDIR}${PREFIX}/bin/cdb
       +        chmod 755 ${DESTDIR}${PREFIX}/bin/cdb
       +        mkdir -p ${DESTDIR}${MANDIR}/man1
       +        cp cdb.1 ${DESTDIR}${MANDIR}/man1/cdb.1
       +        chmod 644 ${DESTDIR}${MANDIR}/man1/cdb.1
       +        mkdir -p ${DESTDIR}${MANDIR}/man5
       +        cp cdb.5 ${DESTDIR}${MANDIR}/man5/cdb.5
       +        chmod 644 ${DESTDIR}${MANDIR}/man5/cdb.5
       +
       +uninstall:
       +        rm ${DESTDIR}${PREFIX}/bin/cdb
       +        rm ${DESTDIR}${MANDIR}/man1/cdb.1
       +        rm ${DESTDIR}${MANDIR}/man5/cdb.5