Changeset 775 in code


Ignore:
Timestamp:
Feb 8, 2022, 3:10:19 PM (3 years ago)
Author:
contact
Message:

makefile: switch to BSD/GNU make

Let's stop using POSIX make, it's too much of a pain.

Location:
trunk
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/Makefile

    r613 r775  
    1 .POSIX:
    2 .SUFFIXES:
    3 
    4 GO = go
    5 RM = rm
    6 SCDOC = scdoc
    7 GOFLAGS =
    8 PREFIX = /usr/local
    9 BINDIR = bin
    10 MANDIR = share/man
     1GO ?= go
     2RM ?= rm
     3SCDOC ?= scdoc
     4GOFLAGS ?=
     5PREFIX ?= /usr/local
     6BINDIR ?= bin
     7MANDIR ?= share/man
    118
    129all: soju sojuctl doc/soju.1
     
    2017
    2118clean:
    22         $(RM) -rf soju sojuctl doc/soju.1
     19        $(RM) -f soju sojuctl doc/soju.1
    2320install:
    2421        mkdir -p $(DESTDIR)$(PREFIX)/$(BINDIR)
     
    3027        [ -f $(DESTDIR)/etc/soju/config ] || cp -f config.in $(DESTDIR)/etc/soju/config
    3128
    32 .PHONY: soju sojuctl
     29.PHONY: soju sojuctl clean install
  • trunk/README.md

    r593 r775  
    2121
    2222- Go
     23- BSD or GNU make
    2324- a C89 compiler (for SQLite)
    2425- scdoc (optional, for man pages)
     
    3132For development, you can use `go run ./cmd/soju` as usual.
    3233
    33 To link with the system libsqlite3, use `make GOFLAGS="-tags=libsqlite3"`.
     34To link with the system libsqlite3, set `GOFLAGS="-tags=libsqlite3"`.
    3435
    3536## Contributing
Note: See TracChangeset for help on using the changeset viewer.