1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37
|
TOPDIR=../../
include $(TOPDIR)/Rules.make
ifeq ($(HAVE_MAKEINFO),yes)
endif
ifeq ($(HAVE_MAKEINFO),yes)
SOURCES=configuration.texi fileselector.texi mdz.texi player.texi starting.texi wap.texi faq.texi install.texi ocp.texi plugin.texi support.texi
all: ocp.info.gz
ocp.info.gz: $(SOURCES)
rm -Rf ocp ocp.html ocp.info ocp.info.gz
makeinfo ocp.texi
mv ocp ocp.info
gzip -9 ocp.info
makeinfo --html ocp.texi
mv ocp ocp.html
install: all
mkdir -p "$(DESTDIR)$(INFODIR)"
$(CP) ocp.info.gz "$(DESTDIR)$(INFODIR)"
install-info --dir-file="$(DESTDIR)$(INFODIR)/dir" "$(DESTDIR)$(INFODIR)/ocp.info.gz" || true
mkdir -p "$(DESTDIR)$(PREFIX)/share/doc/ocp$(DIR_SUFFIX)/html"
$(CP) -R ocp.html/* "$(DESTDIR)$(PREFIX)/share/doc/ocp$(DIR_SUFFIX)/html"
uninstall:
install-info --delete --dir-file="$(DESTDIR)$(INFODIR)/dir" "$(DESTDIR)$(INFODIR)/ocp.info.gz"
rm -f "$(DESTDIR)$(INFODIR)/ocp.info.gz"
rm -Rf "$(DESTDIR)$(PREFIX)/share/doc/ocp$(DIR_SUFFIX)/html"
else
all:
install:
uninstall:
endif
clean:
rm -Rf ocp ocp.info ocp.info.gz html ocp.html
|