Wednesday, December 18, 2024

Need help with manpage installation via makefile

Hello misc@

```makefile
PREFIX ?= /usr/local
BINDIR = ${PREFIX}/bin
MANDIR = ${PREFIX}/man/man1

SCRIPT = wireless
MAN = wireless.1

all: # nothing to build

install:
install -m 755 $(SCRIPT) $(BINDIR)
install -m 644 $(MAN) $(MANDIR)

.include <bsd.prog.mk>
```

I'm trying to write a makefile for my openbsd wireless manager script,
but the manpage isnt properly installing. its complaining about a bogus
manpage entry when i try to `apropos` it. any idea what i'm doing wrong
here?

The source is
here: https://codeberg.org/izder456/utils (i haven't committed this makefile,
I have a nonfunctional on in the main branch currently)


--
iz (they/them)

> i like to say mundane things,
> there are too many uninteresting things
> that go unnoticed.

izder456 (dot) neocities (dot) org

No comments:

Post a Comment