mirror of git://git.suckless.org/ubase
Makefile: make man pages with ubase VERSION
This commit is contained in:
parent
544779a7b8
commit
363ac46766
4
Makefile
4
Makefile
|
@ -166,9 +166,9 @@ install: all
|
||||||
cp -f $(BIN) $(DESTDIR)$(PREFIX)/bin
|
cp -f $(BIN) $(DESTDIR)$(PREFIX)/bin
|
||||||
cd $(DESTDIR)$(PREFIX)/bin && chmod 755 $(BIN)
|
cd $(DESTDIR)$(PREFIX)/bin && chmod 755 $(BIN)
|
||||||
mkdir -p $(DESTDIR)$(MANPREFIX)/man1
|
mkdir -p $(DESTDIR)$(MANPREFIX)/man1
|
||||||
for m in $(MAN1); do sed "s/VERSION/$(VERSION)/g" < "$$m" > $(DESTDIR)$(MANPREFIX)/man1/"$$m"; done
|
for m in $(MAN1); do sed "s/^\.Os ubase/.Os ubase $(VERSION)/g" < "$$m" > $(DESTDIR)$(MANPREFIX)/man1/"$$m"; done
|
||||||
mkdir -p $(DESTDIR)$(MANPREFIX)/man8
|
mkdir -p $(DESTDIR)$(MANPREFIX)/man8
|
||||||
for m in $(MAN8); do sed "s/VERSION/$(VERSION)/g" < "$$m" > $(DESTDIR)$(MANPREFIX)/man8/"$$m"; done
|
for m in $(MAN8); do sed "s/^\.Os ubase/.Os ubase $(VERSION)/g" < "$$m" > $(DESTDIR)$(MANPREFIX)/man8/"$$m"; done
|
||||||
cd $(DESTDIR)$(MANPREFIX)/man1 && chmod 644 $(MAN1)
|
cd $(DESTDIR)$(MANPREFIX)/man1 && chmod 644 $(MAN1)
|
||||||
cd $(DESTDIR)$(MANPREFIX)/man8 && chmod 644 $(MAN8)
|
cd $(DESTDIR)$(MANPREFIX)/man8 && chmod 644 $(MAN8)
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue