aboutsummaryrefslogtreecommitdiffhomepage
path: root/maker.org
diff options
context:
space:
mode:
authorRalph Amissah <ralph@amissah.com>2015-10-28 06:38:18 -0400
committerRalph Amissah <ralph@amissah.com>2015-10-28 11:44:56 -0400
commit62b0b5b859230f59bb3e6cbe1ac2da410063c071 (patch)
tree5cf13fc218ecc2ebd524fe0ccf13382fbc5135ac /maker.org
parentmake gitsnapshot (diff)
org maintenance
Diffstat (limited to 'maker.org')
-rw-r--r--maker.org49
1 files changed, 33 insertions, 16 deletions
diff --git a/maker.org b/maker.org
index 070b6a6..f7f494e 100644
--- a/maker.org
+++ b/maker.org
@@ -1,4 +1,4 @@
-#+TITLE: Emacs config file written in org-mode
+#+TITLE: sdp (project) makefile
#+AUTHOR: Ralph Amissah
#+EMAIL: ralph.amissah@gmail.com
#+STARTUP: indent
@@ -10,11 +10,12 @@
#+EXPORT_SELECT_TAGS: export
#+EXPORT_EXCLUDE_TAGS: noexport
#+TAGS: Amissah(A) Class(c) WEB(W) noexport(n)
+#+FILETAGS: :project:sdp:makefile:
-* makefile :makefile:
-** settings [+2]
-*** alternative D compilers [+1]
-**** dmd
+* makefile
+** settings [+2] :settings:
+*** alternative D compilers [+1] :compiler:
+**** dmd :dmd:
#+name: makefile
#+BEGIN_SRC makefile :exports none
DMD=dmd
@@ -23,7 +24,7 @@ DMD_FLAGS_RELEASE=-release
DMD_FLAG_BINOF=-of
#+end_src
-**** ldc2
+**** ldc2 :ldc:
#+name: makefile
#+BEGIN_SRC makefile :exports none
LDC=ldc2
@@ -32,7 +33,7 @@ LDC_FLAGS_RELEASE=-release
LDC_FLAG_BINOF=-of=
#+end_src
-**** gdc
+**** gdc :gdc:
#+name: makefile
#+BEGIN_SRC makefile :exports none
GDC=gdc
@@ -42,10 +43,10 @@ GDC_FLAGS_RELEASE=-frelease
GDC_FLAG_BINOF=-o
#+end_src
-*** set/select: ~D compiler~ & ~debug flags~ [+1] [2/2]
+*** set/select: ~D compiler~ & ~debug flags~ [+1] [2/2] :select:
- [X] Set D_COMPILER (one of DMD LDC or GDC)
- [X] Set debug flags (using DMD standard flag -debug=)
-**** SET compiler: "SET_D_COMPILER=":
+**** SET compiler: "SET_D_COMPILER=": :compiler:select:
Set D_COMPILER one of DMD LDC or GDC e.g.:
SET_D_COMPILER=DMD
#+name: makefile
@@ -54,7 +55,7 @@ Set D_COMPILER one of DMD LDC or GDC e.g.:
SET_D_COMPILER=LDC
#+end_src
-**** SET debug flags: "SET_DC_FLAGS_DEBUG_EXTRA=-debug=":
+**** SET debug flags: "SET_DC_FLAGS_DEBUG_EXTRA=-debug=": :compiler:flags:debug:
Set debug flags using DMD standard flag -debug= e.g.:
SET_DC_FLAGS_DEBUG_EXTRA=-debug=headings -debug=bookindex
#+name: makefile
@@ -62,7 +63,7 @@ Set debug flags using DMD standard flag -debug= e.g.:
SET_DC_FLAGS_DEBUG_EXTRA=-debug=headings -debug=bookindex
#+end_src
-*** D compiler settings [+1]
+*** D compiler settings [+1] :settings:compiler:
**** compiler settings
#+name: makefile
#+BEGIN_SRC makefile :exports none
@@ -89,7 +90,7 @@ ifeq ($(DC), $(GDC))
endif
#+end_src
-*** Project Details
+*** Project Details :project:sdp:
#+name: makefile
#+BEGIN_SRC makefile :exports none
PRG_NAME=sdp
@@ -99,7 +100,7 @@ PRG_BIN=$(PRG_NAME)
PRG_BINDIR=bin
#+end_src
-*** Emacs Org settings
+*** Emacs Org settings :settings:emacs:org:
#+name: makefile
#+BEGIN_SRC makefile :exports none
# ORG
@@ -111,7 +112,22 @@ ORGFILES=""
ORGDIR=$(shell echo `pwd`)
#+end_src
-** "make" commands [+2]
+** "make" commands [+2] :make:commands:
+- build commands
+ - build
+ - debug
+ - release
+- init, clean, distclean etc.
+ - init
+ - clean
+ - expunge
+ - distclean
+ - distclean_and_init
+- org babel tangle
+ - tangle
+- git snapshot
+ - gitsnapshot
+
*** build commands [+1]
**** build rebuild
#+name: makefile
@@ -218,8 +234,9 @@ gitsnapshot: distclean_and_init tangle
tangle
#+end_src
-* sh script to batch process emacs org babel tangle :tangle:
+* sh script to batch process emacs org babel tangle :shell_script:tangle:
[http://orgmode.org/manual/Batch-execution.html]
+creates a shell batch script called "tangle", that will tangle (emacs org babel tangle) org files in ./org/ to create .d source files in ./lib/sdp/ (similar functionality is contained within the "makefile" created by this "maker.org" file make tangle)
#+BEGIN_SRC sh :tangle tangle :tangle-mode (identity #o755) :shebang #!/bin/sh
# -*- mode: shell-script -*-
# tangle files with org-mode
@@ -245,7 +262,7 @@ emacs --batch -Q -q \
(kill-buffer)) '($ORGFILES)))" 2>&1 #|grep tangled
#+end_src
-* tangle
+* tangle :tangle:
** makefile: :makefile:
#+name: tangle_ao_rgx
#+BEGIN_SRC makefile :tangle makefile :exports none :noweb yes