PREFIX=usr
BINDIR=$(PREFIX)/bin
SHAREDIR=$(PREFIX)/share/doc/$(NAME)
+MANDIR=$(PREFIX)/share/man
################################################################################
mkdir --parents $(@D)
gzip --stdout --no-name --best $(SRCDIR)/debian/changelog > $(@)
+$(PACKAGEDIR)/$(MANDIR)/man1/scantopdf.1.gz:
+
+ mkdir --parents $(@D)
+ gzip --stdout --no-name --best $(SRCDIR)/man/scantopdf.1 > $(@)
+
$(BUILDDIR)/$(PACKAGENAME).deb: \
$(PACKAGEDIR)/$(BINDIR)/scantopdf \
$(PACKAGEDIR)/$(BINDIR)/scantopdfgray \
$(PACKAGEDIR)/$(SHAREDIR)/cutpage.html \
$(PACKAGEDIR)/$(SHAREDIR)/copyright \
$(PACKAGEDIR)/$(SHAREDIR)/changelog.gz \
+ $(PACKAGEDIR)/$(MANDIR)/man1/scantopdf.1.gz \
$(PACKAGEDIR)/DEBIAN/control
mkdir --parents $(@D)
--- /dev/null
+.TH scantopdf 1 2026-05-25
+
+.SH NAME
+scantopdf - scan documents to pdf in color
+
+.SH SYNOPSIS
+scantopdf <pagecount> <output> [<keywords>]
+
+.SH OPTIONS
+.P
+.EX
+pagecount number of pages to scan
+output output name of pdf file with extension
+keywords pdf keywords one string comma seperated without spaces
+.EE
+.P
\ No newline at end of file