2004-11-29 03:45:02 +00:00
|
|
|
##===- docs/CommandGuide/Makefile --------------------------*- Makefile -*-===##
|
|
|
|
#
|
|
|
|
# The LLVM Compiler Infrastructure
|
|
|
|
#
|
|
|
|
# This file was developed by the LLVM research group and is distributed under
|
|
|
|
# the University of Illinois Open Source License. See LICENSE.TXT for details.
|
|
|
|
#
|
|
|
|
##===----------------------------------------------------------------------===##
|
2004-05-14 19:50:33 +00:00
|
|
|
|
2004-11-29 03:45:02 +00:00
|
|
|
LEVEL := ../..
|
|
|
|
|
|
|
|
include $(LEVEL)/Makefile.common
|
|
|
|
|
|
|
|
POD := $(wildcard $(BUILD_SRC_DIR)/*.pod)
|
|
|
|
|
|
|
|
EXTRA_DIST := $(POD) index.html
|
|
|
|
|
|
|
|
HTML = $(patsubst $(BUILD_SRC_DIR)/%.pod, html/%.html, $(POD))
|
|
|
|
MAN = $(patsubst $(BUILD_SRC_DIR)/%.pod, man/man1/%.1, $(POD))
|
|
|
|
PS = $(patsubst $(BUILD_SRC_DIR)/%.pod, ps/%.ps, $(POD))
|
|
|
|
|
|
|
|
all-local:: $(HTML) $(MAN) $(PS)
|
2004-05-14 19:50:33 +00:00
|
|
|
|
|
|
|
.SUFFIXES:
|
|
|
|
.SUFFIXES: .html .pod .1 .ps
|
|
|
|
|
2004-11-29 03:45:02 +00:00
|
|
|
$(HTML) : html/.dir man/.dir man/man1/.dir ps/.dir
|
|
|
|
|
2004-05-14 20:24:59 +00:00
|
|
|
html/%.html: %.pod
|
2004-11-29 03:45:02 +00:00
|
|
|
$(POD2HTML) --css=manpage.css --htmlroot=. --podpath=. \
|
|
|
|
--noindex --infile=$< --outfile=$@ --title=$*
|
2004-05-14 19:50:33 +00:00
|
|
|
|
2004-05-14 20:24:59 +00:00
|
|
|
man/man1/%.1: %.pod
|
2004-11-29 03:45:02 +00:00
|
|
|
$(POD2MAN) --release=$(PACKAGE_VERSION) \
|
|
|
|
--center="LLVM Command Guide" $< $@
|
2004-05-14 19:50:33 +00:00
|
|
|
|
2004-05-14 20:24:59 +00:00
|
|
|
ps/%.ps: man/man1/%.1
|
2004-11-29 03:45:02 +00:00
|
|
|
$(GROFF) -Tps -man $< > $@
|
|
|
|
|
|
|
|
clean-local::
|
|
|
|
$(Verb) $(RM) -f pod2htm*.*~~ $(HTML) $(MAN) $(PS)
|
|
|
|
|
|
|
|
install-local:: $(HTML) $(MAN) $(PS)
|
|
|
|
$(Echo) Installing HTML CommandGuide Documentation
|
|
|
|
$(Verb) $(INSTALL) -d $(LLVM_DOCSDIR)/html/CommandGuide
|
|
|
|
$(Verb) $(INSTALL) -C $(HTML) $(LLVM_DOCSDIR)/html/CommandGuide
|
|
|
|
$(Echo) Installing MAN CommandGuide Documentation
|
|
|
|
$(Verb) $(INSTALL) -d $(LLVM_MANDIR)/man1
|
|
|
|
$(Verb) $(INSTALL) -C $(MAN) $(LLVM_MANDIR)/man1
|
|
|
|
$(Echo) Installing PS CommandGuide Documentation
|
|
|
|
$(Verb) $(INSTALL) -d $(LLVM_DOCSDIR)/ps
|
|
|
|
$(Verb) $(INSTALL) -C $(PS) $(LLVM_DOCSDIR)/ps
|
2004-05-14 19:50:33 +00:00
|
|
|
|
2004-11-29 03:45:02 +00:00
|
|
|
uninstall-local::
|
|
|
|
$(Echo) Uninstalling Documentation
|
|
|
|
$(Verb) $(RM) -rf $(LLVM_DOCSDIR)
|
2004-05-14 19:50:33 +00:00
|
|
|
|
2004-11-29 03:45:02 +00:00
|
|
|
printvars::
|
|
|
|
$(Echo) "POD : " '$(POD)'
|
|
|
|
$(Echo) "HTML : " '$(HTML)'
|