diff options
Diffstat (limited to 'maker.org')
| -rw-r--r-- | maker.org | 49 | 
1 files changed, 33 insertions, 16 deletions
| @@ -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 | 
