help2man in Makefile

pull/91/head
Patrick Tudor 2020-01-25 16:57:46 -08:00
parent eede7d6d2b
commit 1b6dd6066b
No known key found for this signature in database
GPG Key ID: 2C12D022F591B853
3 changed files with 17 additions and 13 deletions

View File

@ -40,18 +40,16 @@ clean:
rm -f *~ *.o *.d ext/*/*.o $(PROGRAMS) navmon.pb.h navmon.pb.cc $(patsubst %.cc,%.o,$(wildcard ext/sgp4/libsgp4/*.cc)) $(H2OPP) $(SIMPLESOCKETS)
rm -f ext/fmt-5.2.1/src/format.o
install: $(PROGRAMS)
$(INSTALL) -s -m 755 -D galmonmon $(DESTDIR)$(prefix)/bin/galmonmon
$(INSTALL) -s -m 755 -D navcat $(DESTDIR)$(prefix)/bin/navcat
$(INSTALL) -s -m 755 -D navdisplay $(DESTDIR)$(prefix)/bin/navdisplay
$(INSTALL) -s -m 755 -D navdump $(DESTDIR)$(prefix)/bin/navdump
$(INSTALL) -s -m 755 -D navnexus $(DESTDIR)$(prefix)/bin/navnexus
$(INSTALL) -s -m 755 -D navparse $(DESTDIR)$(prefix)/bin/navparse
$(INSTALL) -s -m 755 -D navrecv $(DESTDIR)$(prefix)/bin/navrecv
$(INSTALL) -s -m 755 -D reporter $(DESTDIR)$(prefix)/bin/reporter
$(INSTALL) -s -m 755 -D testrunner $(DESTDIR)$(prefix)/bin/testrunner
$(INSTALL) -s -m 755 -D tlecatch $(DESTDIR)$(prefix)/bin/tlecatch
$(INSTALL) -s -m 755 -D ubxtool $(DESTDIR)$(prefix)/bin/ubxtool
help2man:
$(INSTALL) -m 755 -d $(DESTDIR)$(prefix)/share/man/man1
HELP2MAN_DESCRIPTION=Open-source GNSS Monitoring Project
$(foreach binaryfile,$(PROGRAMS),help2man -N -n "$(HELP2MAN_DESCRIPTION)" ./$(binaryfile) | gzip > $(DESTDIR)$(prefix)/share/man/man1/$(binaryfile).1.gz;)
@echo until these binaries support --help and --version remove the broken output
rm -f $(DESTDIR)$(prefix)/share/man/man1/testrunner.1.gz
install: $(PROGRAMS) help2man
$(INSTALL) -m 755 -d $(DESTDIR)$(prefix)/bin
$(foreach binaryfile,$(PROGRAMS),$(INSTALL) -s -m 755 -D ./$(binaryfile) $(DESTDIR)$(prefix)/bin/$(binaryfile);)
@echo "using cp instead of install because recursive directories of ascii"
mkdir -p $(DESTDIR)$(prefix)$(htdocs)/galmon
cp -a html $(DESTDIR)$(prefix)$(htdocs)/galmon/
@ -60,7 +58,11 @@ install-debian:
apt-key adv --fetch-keys https://ota.bike/public-package-signing-keys/86E7F51C04FBAAB0.asc
echo "deb https://ota.bike/debian/ buster main" > /etc/apt/sources.list.d/galmon.list
apt-get update && apt-get install -y galmon
cp -i /etc/default/galmon /etc/default/ubxtool-ttyACM0
install-raspbian:
apt-key adv --fetch-keys https://ota.bike/public-package-signing-keys/86E7F51C04FBAAB0.asc
echo "deb https://ota.bike/raspbian/ buster main" > /etc/apt/sources.list.d/galmon.list
apt-get update && apt-get install -y galmon
decrypt: decrypt.o bits.o ext/fmt-5.2.1/src/format.o
$(CXX) -std=gnu++17 $^ -o $@

View File

@ -1,4 +1,5 @@
# Copyright 2020 AHU Holding BV - bert@hubertnet.nl - https://berthub.eu/
# https://galmon.eu - https://github.com/ahupowerdns/galmon
# This package is free software: /usr/share/common-licenses/GPL-3
#
# INSTRUCTIONS:

View File

@ -1,4 +1,5 @@
# Copyright 2020 AHU Holding BV - bert@hubertnet.nl - https://berthub.eu/
# https://galmon.eu - https://github.com/ahupowerdns/galmon
# This package is free software: /usr/share/common-licenses/GPL-3
#
# Here are daemon options used by the navrecv and navnexus services