eliminate lengths from record bodies
[oota-llvm.git] / docs / CommandGuide / Makefile
index 51088d397d585e37f97d9a8cd5c04b545d43d251..440d538af559a1017153c958435978b9c31fa7c1 100644 (file)
@@ -30,7 +30,7 @@ html/%.html: %.pod
          --podpath=. --noindex --infile=$< --outfile=$@ --title=$*
 
 man/man1/%.1: %.pod
-       pod2man --release=1.4 --center="LLVM Command Guide" $< $@
+       pod2man --release=CVS --center="LLVM Command Guide" $< $@
 
 ps/%.ps: man/man1/%.1
        groff -Tps -man $< > $@
@@ -44,49 +44,51 @@ LEVEL := ../..
 
 include $(LEVEL)/Makefile.common
 
-POD := $(wildcard $(BUILD_SRC_DIR)/*.pod)
+POD := $(wildcard $(PROJ_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))
+HTML = $(patsubst $(PROJ_SRC_DIR)/%.pod, $(PROJ_OBJ_DIR)/%.html, $(POD))
+MAN = $(patsubst $(PROJ_SRC_DIR)/%.pod, $(PROJ_OBJ_DIR)/%.1, $(POD))
+PS = $(patsubst $(PROJ_SRC_DIR)/%.pod, $(PROJ_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
+html: $(HTML)
+
+$(PROJ_OBJ_DIR)/%.html: %.pod
        $(POD2HTML) --css=manpage.css --htmlroot=. --podpath=. \
          --noindex --infile=$< --outfile=$@ --title=$*
 
-$(BUILD_OBJ_DIR)/%.1: %.pod
-       $(POD2MAN) --release=$(PACKAGE_VERSION) \
+$(PROJ_OBJ_DIR)/%.1: %.pod
+       $(POD2MAN) --release=$(LLVMVersion) \
          --center="LLVM Command Guide" $< $@
 
-$(BUILD_OBJ_DIR)/%.ps: $(BUILD_OBJ_DIR)/%.1
+$(PROJ_OBJ_DIR)/%.ps: $(PROJ_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
+HTML_DIR := $(PROJ_docsdir)/html/CommandGuide
+MAN_DIR  := $(PROJ_mandir)/man1
+PS_DIR   := $(PROJ_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)
+       $(Verb) $(MKDIR) $(HTML_DIR)
+       $(Verb) $(DataInstall) $(HTML) $(HTML_DIR)
+       $(Verb) $(DataInstall) $(PROJ_SRC_DIR)/index.html $(HTML_DIR)
+       $(Verb) $(DataInstall) $(PROJ_SRC_DIR)/manpage.css $(HTML_DIR)
        $(Echo) Installing MAN CommandGuide Documentation
-       $(Verb) $(INSTALL) -d $(MAN_DIR)
-       $(Verb) $(INSTALL) -C $(MAN) $(MAN_DIR)
+       $(Verb) $(MKDIR) $(MAN_DIR)
+       $(Verb) $(DataInstall) $(MAN) $(MAN_DIR)
        $(Echo) Installing PS CommandGuide Documentation
-       $(Verb) $(INSTALL) -d $(PS_DIR)
-       $(Verb) $(INSTALL) -C $(PS) $(PS_DIR)
+       $(Verb) $(MKDIR) $(PS_DIR)
+       $(Verb) $(DataInstall) $(PS) $(PS_DIR)
 
 uninstall-local::
        $(Echo) Uninstalling Documentation