mirror of
https://github.com/RPCSX/llvm.git
synced 2024-12-05 02:16:46 +00:00
5507eabec5
1. Nothing should happen on "make all". Doc generation is quick, but we don't want to do it unless we're installing. 2. Correct a dependency for the *.ps files .. didn't notice this before because of cruft in my directory. It failed on a clean build. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@18359 91177308-0d34-0410-b5e6-96231b3b80d8
65 lines
2.0 KiB
Makefile
65 lines
2.0 KiB
Makefile
##===- 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.
|
|
#
|
|
##===----------------------------------------------------------------------===##
|
|
|
|
LEVEL := ../..
|
|
|
|
include $(LEVEL)/Makefile.common
|
|
|
|
POD := $(wildcard $(BUILD_SRC_DIR)/*.pod)
|
|
|
|
EXTRA_DIST := $(POD) index.html
|
|
|
|
HTML = $(patsubst $(BUILD_SRC_DIR)/%.pod, $(BUILD_OBJ_DIR)/%.html, $(POD))
|
|
MAN = $(patsubst $(BUILD_SRC_DIR)/%.pod, $(BUILD_OBJ_DIR)/%.1, $(POD))
|
|
PS = $(patsubst $(BUILD_SRC_DIR)/%.pod, $(BUILD_OBJ_DIR)/%.ps, $(POD))
|
|
|
|
.SUFFIXES:
|
|
.SUFFIXES: .html .pod .1 .ps
|
|
|
|
$(HTML) : html/.dir man/.dir man/man1/.dir ps/.dir
|
|
|
|
$(BUILD_OBJ_DIR)/%.html: %.pod
|
|
$(POD2HTML) --css=manpage.css --htmlroot=. --podpath=. \
|
|
--noindex --infile=$< --outfile=$@ --title=$*
|
|
|
|
$(BUILD_OBJ_DIR)/%.1: %.pod
|
|
$(POD2MAN) --release=$(PACKAGE_VERSION) \
|
|
--center="LLVM Command Guide" $< $@
|
|
|
|
$(BUILD_OBJ_DIR)/%.ps: $(BUILD_OBJ_DIR)/%.1
|
|
$(GROFF) -Tps -man $< > $@
|
|
|
|
clean-local::
|
|
$(Verb) $(RM) -f pod2htm*.*~~ $(HTML) $(MAN) $(PS)
|
|
|
|
HTML_DIR := $(LLVM_DOCSDIR)/html/CommandGuide
|
|
MAN_DIR := $(LLVM_MANDIR)/man1
|
|
PS_DIR := $(LLVM_DOCSDIR)/ps
|
|
|
|
install-local:: $(HTML) $(MAN) $(PS)
|
|
$(Echo) Installing HTML CommandGuide Documentation
|
|
$(Verb) $(INSTALL) -d $(HTML_DIR)
|
|
$(Verb) $(INSTALL) -C $(HTML) $(HTML_DIR)
|
|
$(Verb) $(INSTALL) -C $(BUILD_SRC_DIR)/index.html $(HTML_DIR)
|
|
$(Verb) $(INSTALL) -C $(BUILD_SRC_DIR)/manpage.css $(HTML_DIR)
|
|
$(Echo) Installing MAN CommandGuide Documentation
|
|
$(Verb) $(INSTALL) -d $(MAN_DIR)
|
|
$(Verb) $(INSTALL) -C $(MAN) $(MAN_DIR)
|
|
$(Echo) Installing PS CommandGuide Documentation
|
|
$(Verb) $(INSTALL) -d $(PS_DIR)
|
|
$(Verb) $(INSTALL) -C $(PS) $(PS_DIR)
|
|
|
|
uninstall-local::
|
|
$(Echo) Uninstalling Documentation
|
|
$(Verb) $(RM) -rf $(LLVM_DOCSDIR)
|
|
|
|
printvars::
|
|
$(Echo) "POD : " '$(POD)'
|
|
$(Echo) "HTML : " '$(HTML)'
|