Browse Source

Add org-guide.org to the build process

Nicolas Goaziou 5 years ago
parent
commit
afd566e633
3 changed files with 12 additions and 8 deletions
  1. 9 6
      doc/Makefile
  2. 2 1
      doc/dir
  3. 1 1
      mk/org-fixup.el

+ 9 - 6
doc/Makefile

@@ -7,7 +7,7 @@ endif
 
 all:		$(ORG_MAKE_DOC)
 
-info:		org
+info:		org orgguide
 
 html:		org.html
 
@@ -27,7 +27,7 @@ guide::		orgguide.texi org-version.inc
 	../mk/guidesplit.pl $@/*
 endif
 
-org.texi:	org-manual.org
+org.texi orgguide.texi:	org-manual.org org-guide.org
 	$(BATCH) \
 	  --eval '(add-to-list '"'"'load-path "../lisp")' \
 	  --eval '(load "../mk/org-fixup.el")' \
@@ -46,21 +46,24 @@ org-version.tex:	orgcard.tex
 	@printf "\def\\\\versionyear{$(YEAR)}\n" >> org-version.tex
 	@printf "\def\year{$(YEAR)}\n" >> org-version.tex
 
-install:	org
+install:	org orgguide
 	if [ ! -d $(DESTDIR)$(infodir) ]; then $(MKDIR) $(DESTDIR)$(infodir); else true; fi ;
 	$(CP) org $(DESTDIR)$(infodir)
+	$(CP) orgguide $(DESTDIR)$(infodir)
 	$(INSTALL_INFO) --infodir=$(DESTDIR)$(infodir) org
+	$(INSTALL_INFO) --infodir=$(DESTDIR)$(infodir) orgguide
 
 clean:
-	$(RM) org *.pdf *.html *_letter.tex org-version.inc org-version.tex \
-	      *.aux *.cp *.cps *.dvi *.fn *.fns *.ky *.kys *.pg *.pgs \
-	      *.toc *.tp *.tps *.vr *.vrs *.log *.html *.ps
+	$(RM) org orgguide *.pdf *.html *_letter.tex org-version.inc \
+	      org-version.tex *.aux *.cp *.cps *.dvi *.fn *.fns *.ky *.kys \
+              *.pg *.pgs *.toc *.tp *.tps *.vr *.vrs *.log *.html *.ps
 cleanall:	clean
 	$(RMR) guide manual
 
 clean-install:
 	$(RM) $(DESTDIR)$(infodir)/org*
 	$(INSTALL_INFO) --infodir=$(DESTDIR)$(infodir) --remove org
+	$(INSTALL_INFO) --infodir=$(DESTDIR)$(infodir) --remove orgguide
 
 .SUFFIXES:	.texi .tex .txt _letter.tex
 

+ 2 - 1
doc/dir

@@ -15,4 +15,5 @@ File: dir,	Node: Top	This is the top of the INFO tree
 * Menu:
 
 Emacs
-* Org Mode: (org).      Outline-based notes management and organizer
+* Org Mode: (org).        Outline-based notes management and organizer.
+* Org Guide: (orgguide).  Abbreviated Org mode manual.

+ 1 - 1
mk/org-fixup.el

@@ -30,7 +30,7 @@
 (defun org-make-manuals ()
   "Generate the Texinfo files out of Org manuals."
   (require 'ox-texinfo)
-  (dolist (manual '("../doc/org-manual.org"))
+  (dolist (manual '("../doc/org-manual.org" "../doc/org-guide.org"))
     (find-file manual)
     (org-texinfo-export-to-texinfo)))