aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--ksiders/Makefile23
-rw-r--r--ksiders/atrdir.12
-rw-r--r--ksiders/atrextr.12
3 files changed, 15 insertions, 12 deletions
diff --git a/ksiders/Makefile b/ksiders/Makefile
index 674b3e6..38b33c7 100644
--- a/ksiders/Makefile
+++ b/ksiders/Makefile
@@ -25,32 +25,35 @@ MAN1DIR=$(MANDIR)/man1
# Comment out next line if your system does not support gzip'ed man pages
GZIP_MAN=y
+# Some distros have this with a .py extension, some don't. Only needed
+# if you're rebuilding the man pages (users shouldn't have to).
+# RST2MAN=rst2man.py
+RST2MAN=rst2man
+
EXES=atrdir atrextr makeatr sortatr unmakatr
-MANS=atrdir atrextr makeatr sortatr
+MANS=atrdir.1 atrextr.1 makeatr.1 sortatr.1 unmakatr.1
+
+all: $(EXES) $(MANS)
-all: $(EXES)
+%.1: %.rst manhdr.rst manftr.rst
+ $(RST2MAN) $< > $@
clean:
rm -f $(EXES) atr.o tags *~ *.bak
install: all
- mkdir -p $(DESTDIR)$(BINDIR) $(DESTDIR)$(MANDIR) ;\
+ mkdir -p $(DESTDIR)$(BINDIR) $(DESTDIR)$(MAN1DIR) ;\
for exe in $(EXES) ; do \
strip $$exe ;\
cp $$exe $(DESTDIR)$(BINDIR)/$$exe ;\
done ;\
for man in $(MANS) ; do \
if [ "$(GZIP_MAN)" = "y" ]; then \
- gzip -c < $$man.1 > $(DESTDIR)$(MAN1DIR)/$$man.1.gz ;\
+ gzip -c < $$man > $(DESTDIR)$(MAN1DIR)/$$man.gz ;\
else \
- cp $$man.1 $(DESTDIR)$(MAN1DIR) ; \
+ cp $$man $(DESTDIR)$(MAN1DIR) ; \
fi ;\
done
- if [ "$(GZIP_MAN)" = "y" ]; then \
- cd $(DESTDIR)$(MAN1DIR) && rm -f unmakatr.1.gz && ln -s makeatr.1.gz unmakatr.1.gz ;\
- else \
- cd $(DESTDIR)$(MAN1DIR) && rm -f unmakatr.1 && ln -s makeatr.1 unmakatr.1 ;\
- fi
atr.o: atr.c atr.h atdos.h kboot.h
diff --git a/ksiders/atrdir.1 b/ksiders/atrdir.1
index d68d099..ed6e020 100644
--- a/ksiders/atrdir.1
+++ b/ksiders/atrdir.1
@@ -102,7 +102,7 @@ Urchlay on irc.libera.chat \fI##atari\fP\&.
\fBatrdir\fP(1),
\fBatrextr\fP(1),
\fBmakeatr\fP(1),
-\fBsort\fP(1).
+\fBsortatr\fP(1).
.sp
Any good Atari 8\-bit book: \fIDe Re Atari\fP, \fIThe Atari BASIC Reference
Manual\fP, the \fIOS Users\(aq Guide\fP, \fIMapping the Atari\fP, etc.
diff --git a/ksiders/atrextr.1 b/ksiders/atrextr.1
index f4799d1..dea48c8 100644
--- a/ksiders/atrextr.1
+++ b/ksiders/atrextr.1
@@ -91,7 +91,7 @@ Urchlay on irc.libera.chat \fI##atari\fP\&.
\fBatrdir\fP(1),
\fBatrextr\fP(1),
\fBmakeatr\fP(1),
-\fBsort\fP(1).
+\fBsortatr\fP(1).
.sp
Any good Atari 8\-bit book: \fIDe Re Atari\fP, \fIThe Atari BASIC Reference
Manual\fP, the \fIOS Users\(aq Guide\fP, \fIMapping the Atari\fP, etc.