[PATCH] Create and install the documentation too
Thiago Macieira
thiago at macieira.org
Thu May 30 15:07:39 PDT 2013
The default build will now create the HTML documentation (only the HTML
one) and the install rule will install it.
Signed-off-by: Thiago Macieira <thiago at macieira.org>
---
Rules.mk | 5 ++++-
1 file changed, 4 insertions(+), 1 deletion(-)
diff --git a/Rules.mk b/Rules.mk
index 63bfeeb..9105a94 100644
--- a/Rules.mk
+++ b/Rules.mk
@@ -41,7 +41,7 @@ ALL_OBJS = $(OBJS) $(MOC_OBJS)
# Files for using Qt Creator
CREATOR_FILES = $(NAME).config $(NAME).creator $(NAME).files $(NAME).includes
-all: $(NAME)
+all: $(NAME) doc
$(TARGET): gen_version_file $(ALL_OBJS) $(MSGOBJS) $(INFOPLIST)
@$(PRETTYECHO) ' LINK' $(TARGET)
@@ -78,6 +78,7 @@ install: all
$(INSTALL) -d $(prefix)/$$LOC; \
$(INSTALL) -m 644 $$LOC/$(NAME).mo $(prefix)/$$LOC/$(NAME).mo; \
done
+ $(INSTALL) -m 644 Documentation/user-manual.html $(DATADIR)/$(NAME)
install-macosx: all
@@ -101,6 +102,7 @@ install-macosx: all
$(INSTALL) -d -m 755 $(MACOSXINSTALL)/Contents/Resources/xslt; \
$(INSTALL) -m 644 $(XSLTFILES) $(MACOSXINSTALL)/Contents/Resources/xslt/; \
fi
+ $(INSTALL) -m 644 Documentation/user-manual.html $(MACOSXINSTALL)/Contents/Resources
create-macosx-bundle: all
@@ -126,6 +128,7 @@ sign-macosx-bundle: all
install-cross-windows: all
$(INSTALL) -d -m 755 $(WINDOWSSTAGING)/share/locale
+ $(INSTALL) -m 644 Documentation/user-manual.html $(WINDOWSSTAGING)/share/$(NAME)
for MSG in $(WINMSGDIRS); do\
$(INSTALL) -d -m 755 $(WINDOWSSTAGING)/$$MSG;\
$(INSTALL) $(CROSS_PATH)/$$MSG/* $(WINDOWSSTAGING)/$$MSG;\
--
1.7.11.7
More information about the subsurface
mailing list