Fix parallel make
[ioport.git] / Makefile.am
1 bin_PROGRAMS = inb
2
3 inb_SOURCES = port.c
4 inb_CFLAGS = -Wall
5
6 # Make hard links for local testing before installation.
7 all-local: $(bin_PROGRAMS)
8         for p in outb inw outw inl outl; do \
9           rm -f $$p; \
10           ln inb $$p; \
11         done
12
13 # Make hard links after installation.
14 install-exec-hook:
15         for p in outb inw outw inl outl; do \
16           rm -f $(DESTDIR)$(bindir)$$p; \
17           ln $(DESTDIR)$(bindir)/inb $(DESTDIR)$(bindir)/$$p; \
18         done
19
20 # The man page is inb.1 (source: inb.pod).  The other pages are
21 # links to inb.1.
22 man_MANS = inb.1 outb.1 inw.1 outw.1 inl.1 outl.1
23
24 inb.1: inb.pod
25         pod2man \
26           -c "I/O Ports" \
27           --release "$(PACKAGE_NAME)-$(PACKAGE_VERSION)" \
28           $< > $@
29
30 inb.txt: inb.pod
31         pod2text $< > $@
32
33 EXTRA_DIST = inb.pod inw.1 inl.1 outb.1 outw.1 outl.1 \
34         ioport.spec ioport.spec.in