• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1
2EL_MANS = editline.3 editrc.5
3
4man_MANS = $(EL_MANS)
5
6EL_MAN_LINKS = el_init.3 el_end.3 el_reset.3 el_gets.3 el_getc.3 \
7	       el_push.3 el_parse.3 el_set.3 el_get.3 el_source.3 \
8	       el_resize.3 el_line.3 el_insertstr.3 el_deletestr.3 \
9	       el_history_init.3 el_history_end.3 el_history.3 el_tok_init.3 \
10	       el_tok_end.3 el_tok_reset.3 el_tok_line.3 el_tok_str.3
11
12install-data-hook: $(EL_MAN_LINKS)
13
14$(EL_MAN_LINKS):
15	(cd $(DESTDIR)$(man3dir) && rm -f $@ && $(LN_S) editline.3 $@)
16
17$(EL_MANS):
18	@if test "$(MANTYPE)" = "mdoc"; then\
19	   cp $(srcdir)/$@.roff $@;\
20        else\
21	   $(AWK) -f $(srcdir)/mdoc2man.awk $(srcdir)/$@.roff > $@ || rm -f $@;\
22	fi;
23
24uninstall-local:
25	(cd $(DESTDIR)$(man3dir) && rm -f $(EL_MAN_LINKS))
26
27CLEANFILES = $(EL_MANS)
28EXTRA_DIST = editline.3.roff editrc.5.roff mdoc2man.awk
29
30changelog.txt: ../ChangeLog
31	@sed 's/@/ (at)/g; s/&/\&amp;/g; s/</\&lt;/g; s/>/\&gt;/g;' $(srcdir)/$< > $@;
32
33
34