summaryrefslogtreecommitdiffstats
path: root/doc/Makefile.am
blob: 57591c54282e2ef3b33141500d71090f512a3bed (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
# No automatisation found. Write me if any idea.

install-data-hook:
	c2man -P "gcc -E -C -I.." ../vformat/vf_iface.h

	$(mkinstalldirs) $(mandir)/man3

	for i in *.3; do \
	  if test -f $(srcdir)/$$i; then file=$(srcdir)/$$i; \
	  else file=$$i; fi; \
	  ext=`echo $$i | sed -e 's/^.*\\.//'`; \
	  inst=`echo $$i | sed -e 's/\\.[0-9a-z]*$$//'`; \
	  inst=`echo $$inst | sed '$(transform)'`.$$ext; \
	  echo " $(INSTALL_DATA) $$file $(mandir)/man3/$$inst"; \
	  $(INSTALL_DATA) $$file $(mandir)/man3/$$inst; \
	done