mc/doc/Makefile.in
Pavel Roskin 769b082e1b * Make.common.in: Added installcheck to placate "make distcheck"
* configure.in, Make.common.in, doc/Makefile.in,
        edit/Makefile.in, gnome/Makefile.in, gtkedit/Makefile.in,
        slang/Makefile.in, src/Makefile.in, vfs/Make-mc.in: Replacing
        variable MKINSTALLDIRS and builddir with Automake-compatible
        mkinstalldirs and top_builddir.
        * doc-gnome/C/Makefile.am: Only maintainers regenerate html
        files. Added uninstall-local target.
2000-09-18 04:57:29 +00:00

93 lines
2.4 KiB
Makefile

srcdir = @srcdir@
top_srcdir = @top_srcdir@
VPATH = @srcdir@
mkinstalldirs = $(SHELL) $(top_srcdir)/mkinstalldirs
top_builddir = ..
@MCFG@@MCF@
#
# Distribution variables
#
DISTDOC = Makefile.in LSM DEVEL FILES mc.sgml gnome.sgml \
mc.1.in mcedit.1.in mcserv.8.in
LINUXDOCDIR = /usr/local/linuxdoc-sgml
all: Makefile
Makefile: $(srcdir)/Makefile.in $(top_builddir)/config.status
cd $(top_builddir) && CONFIG_FILES=doc/Makefile CONFIG_HEADERS= $(SHELL) ./config.status
install:
$(mkinstalldirs) $(DESTDIR)$(man1dir)
$(mkinstalldirs) $(DESTDIR)$(man8dir)
-$(SEDCMD2) < mc.1 > $(DESTDIR)$(man1dir)/$(manprefix)mc.$(manext)
-$(SEDCMD2) < mcedit.1 > $(DESTDIR)$(man1dir)/$(manprefix)mcedit.$(manext)
-$(SEDCMD2) < mcserv.8 > $(DESTDIR)$(man8dir)/$(manprefix)mcserv.$(man8ext)
uninstall:
$(RMF) $(DESTDIR)$(man1dir)/$(manprefix)mc.$(manext)
$(RMF) $(DESTDIR)$(man1dir)/$(manprefix)mcedit.$(manext)
$(RMF) $(DESTDIR)$(man8dir)/$(manprefix)mcserv.$(man8ext)
check:
@echo no tests are supplied.
TAGS:
cross:
alldoc: mc.html mc.info mc.dvi mc.ps mc.tex mc.txt mc.hlp mc.texi mc.1 mcedit.1
mc.html: mc.sgml
-mkdir html
cd html; $(LN_S) $(srcdir)/mc.sgml .; $(LINUXDOCDIR)/bin/format -T htmlx mc; $(RMF) mc.sgml
if test -f html/FILEROOT.html; then mv html/FILEROOT.html html/mc.html; fi
mc.info: mc.sgml
-mkdir info
cd info; $(LINUXDOCDIR)/bin/format -T info $(srcdir)/mc > mc.info
mc.dvi: mc.sgml
$(LINUXDOCDIR)/bin/format -T latex $(srcdir)/mc | $(LINUXDOCDIR)/bin/qtex -d > mc.dvi
mc.ps: mc.sgml
$(LINUXDOCDIR)/bin/format -T latex $(srcdir)/mc | $(LINUXDOCDIR)/bin/qtex > mc.ps
mc.tex: mc.sgml
$(LINUXDOCDIR)/bin/format -T latex $(srcdir)/mc > mc.tex
mc.txt: mc.sgml
$(LINUXDOCDIR)/bin/format -T ascii $(srcdir)/mc > mc.txt
../src/fixhlp:
cd ../src; $(MAKE) fixhlp
mc.hlp: mc.sgml ../src/fixhlp $(mcsrclibdir)/xnc.hlp
$(LINUXDOCDIR)/bin/format -T hlp $(srcdir)/mc | ../src/fixhlp 58 mc.hlp.toc > mc.hlp.tmp
cat mc.hlp.toc mc.hlp.tmp $(mcsrclibdir)/xnc.hlp > mc.hlp
$(RMF) mc.hlp.toc mc.hlp.tmp
mc.texi: mc.sgml
$(LINUXDOCDIR)/bin/format -T texi $(srcdir)/mc > mc.texi
mc.1: mc.sgml
$(LINUXDOCDIR)/bin/format -T man $(srcdir)/mc > mc.1
clean:
realclean:
distclean:
$(RMF) $(srcdir)/*~ $(srcdir)/Makefile $(srcdir)/*.1 $(srcdir)/*.8
distdir = $(top_builddir)/$(PACKAGE)-$(VERSION)/$(subdir)
distdir:
for I in $(DISTDOC); \
do cp -p $(srcdir)/$$I $(distdir) || exit 1; \
done
depend dep: