bin_PROGRAMS = inb
inb_SOURCES = port.c
inb_CFLAGS = -Wall
# Make hard links for local testing before installation.
all-local: $(bin_PROGRAMS)
for p in outb inw outw inl outl; do \
rm -f $$p; \
ln inb $$p; \
done
# Make hard links after installation.
install-exec-hook:
for p in outb inw outw inl outl; do \
rm -f $(DESTDIR)$(bindir)$$p; \
ln $(DESTDIR)$(bindir)/inb $(DESTDIR)$(bindir)/$$p; \
done
# The man page is inb.1 (source: inb.pod). The other pages are
# links to inb.1.
man_MANS = inb.1 outb.1 inw.1 outw.1 inl.1 outl.1
inb.1: inb.pod
pod2man \
-c "I/O Ports" \
--release "$(PACKAGE_NAME)-$(PACKAGE_VERSION)" \
$< > $@
inb.txt: inb.pod
pod2text $< > $@
EXTRA_DIST = inb.pod inw.1 inl.1 outb.1 outw.1 outl.1 \
ioport.spec ioport.spec.in