From 1d622118a4da208d47d8c52c4c22cedb95ec4913 Mon Sep 17 00:00:00 2001 From: "B. Watson" Date: Sun, 28 Apr 2024 16:45:54 -0400 Subject: Makefile: fix fenders target (derp). --- Makefile | 22 +++++++++++++++++----- 1 file changed, 17 insertions(+), 5 deletions(-) (limited to 'Makefile') diff --git a/Makefile b/Makefile index 4d56cea..19bb1a0 100644 --- a/Makefile +++ b/Makefile @@ -6,6 +6,7 @@ PREFIX=/usr/local BINDIR=$(PREFIX)/bin MANDIR=$(PREFIX)/share/man MAN1DIR=$(MANDIR)/man1 +MAN5DIR=$(MANDIR)/man5 DOCDIR=$(PREFIX)/share/doc/bw-atari8-tools # Compiler stuff @@ -17,6 +18,7 @@ CFLAGS=-Wall $(COPT) -ansi -D_GNU_SOURCE -DVERSION=\"$(VERSION)\" BINS=a8eol xfd2atr atr2xfd blob2c cart2xex fenders xexsplit xexcat atrsize rom2cart unmac65 axe blob2xex xexamine SCRIPTS=dasm2atasm a8utf8 MANS=a8eol.1 xfd2atr.1 atr2xfd.1 blob2c.1 cart2xex.1 fenders.1 xexsplit.1 xexcat.1 atrsize.1 rom2cart.1 unmac65.1 axe.1 dasm2atasm.1 a8utf8.1 blob2xex.1 xexamine.1 +MAN5S=xex.5 DOCS=README equates.inc *.dasm # All the programs share this version number... @@ -75,8 +77,9 @@ fenders_bin.c: fenders.bin blob2c fenders_offsets.h: fenders.bin fenders_offsets.pl perl fenders_offsets.pl < fenders.syms > fenders_offsets.h -fenders: fenders.c fenders_bin.c fenders_bin.h fenders_offsets.h \ - fendersdbl_bin.c fendersdbl_bin.h fendersdbl_offsets.h +fenders: fenders.o fenders_bin.c fendersdbl_bin.c + +fenders.o: fenders.c fenders_bin.h fenders_offsets.h fendersdbl_bin.h fendersdbl_offsets.h fendersdbl.bin: fendersdbl.dasm asmwrapper.sh sh asmwrapper.sh fendersdbl @@ -120,11 +123,14 @@ unmac65.xex: unmac65.c axe: axe.c axe.h axelib.c -manpages: $(MANS) +manpages: $(MANS) $(MAN5S) %.1: %.rst manhdr.rst manftr.rst $(RST2MAN) $< > $@ +%.5: %.rst manhdr5.rst manftr.rst + $(RST2MAN) $< > $@ + # "make clean" does NOT remove the .bin or _bin.[ch] files. This is # for people who don't have either dasm or atasm installed. # also, it doesn't remove the man pages. these are checked into git, even. @@ -138,17 +144,23 @@ realclean: distclean rm -f *.bin *_bin.[ch] *_offsets.h *.1 install: all - mkdir -p $(DESTDIR)/$(BINDIR) $(DESTDIR)/$(MAN1DIR) $(DESTDIR)/$(DOCDIR) + mkdir -p $(DESTDIR)/$(BINDIR) $(DESTDIR)/$(MAN1DIR) $(DESTDIR)/$(MAN5DIR) $(DESTDIR)/$(DOCDIR) strip $(BINS) for i in $(BINS) $(SCRIPTS) ; do \ install -m0755 -oroot -groot $$i $(DESTDIR)/$(BINDIR) ; \ install -m0644 -oroot -groot $$i.1 $(DESTDIR)/$(MAN1DIR) ; \ if [ "$(GZIP_MAN)" = "y" ]; then \ - gzip $(DESTDIR)/$(MAN1DIR)/$$i.1 ; \ + gzip -f $(DESTDIR)/$(MAN1DIR)/$$i.1 ; \ fi ; \ done ( cd $(DESTDIR)/$(BINDIR) && rm -f atrcheck && ln -s atr2xfd atrcheck ) ( cd $(DESTDIR)/$(BINDIR) && rm -f cart2rom && ln -s rom2cart cart2rom ) + for i in $(MAN5S) ; do \ + install -m0644 -oroot -groot $$i $(DESTDIR)/$(MAN5DIR) ; \ + if [ "$(GZIP_MAN)" = "y" ]; then \ + gzip -f $(DESTDIR)/$(MAN5DIR)/$$i ; \ + fi ; \ + done if [ "$(GZIP_MAN)" = "y" ]; then \ cd $(DESTDIR)/$(MAN1DIR) && rm -f atrcheck.1.gz && ln -s atr2xfd.1.gz atrcheck.1.gz ; \ cd $(DESTDIR)/$(MAN1DIR) && rm -f cart2rom.1.gz && ln -s rom2cart.1.gz cart2rom.1.gz ; \ -- cgit v1.2.3