aboutsummaryrefslogtreecommitdiffhomepage
path: root/maker.org
diff options
context:
space:
mode:
Diffstat (limited to 'maker.org')
-rw-r--r--maker.org36
1 files changed, 18 insertions, 18 deletions
diff --git a/maker.org b/maker.org
index f7f494e..a46006a 100644
--- a/maker.org
+++ b/maker.org
@@ -16,7 +16,7 @@
** settings [+2] :settings:
*** alternative D compilers [+1] :compiler:
**** dmd :dmd:
-#+name: makefile
+#+name: makefile_maker
#+BEGIN_SRC makefile :exports none
DMD=dmd
DMD_FLAGS=-de -w
@@ -25,7 +25,7 @@ DMD_FLAG_BINOF=-of
#+end_src
**** ldc2 :ldc:
-#+name: makefile
+#+name: makefile_maker
#+BEGIN_SRC makefile :exports none
LDC=ldc2
LDC_FLAGS=-w
@@ -34,7 +34,7 @@ LDC_FLAG_BINOF=-of=
#+end_src
**** gdc :gdc:
-#+name: makefile
+#+name: makefile_maker
#+BEGIN_SRC makefile :exports none
GDC=gdc
#GDC=gdc-5
@@ -49,7 +49,7 @@ GDC_FLAG_BINOF=-o
**** SET compiler: "SET_D_COMPILER=": :compiler:select:
Set D_COMPILER one of DMD LDC or GDC e.g.:
SET_D_COMPILER=DMD
-#+name: makefile
+#+name: makefile_maker
#+BEGIN_SRC makefile :exports none
# set D_COMPILER one of DMD LDC or GDC:
SET_D_COMPILER=LDC
@@ -58,14 +58,14 @@ SET_D_COMPILER=LDC
**** 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
+#+name: makefile_maker
#+BEGIN_SRC makefile :exports none
SET_DC_FLAGS_DEBUG_EXTRA=-debug=headings -debug=bookindex
#+end_src
*** D compiler settings [+1] :settings:compiler:
**** compiler settings
-#+name: makefile
+#+name: makefile_maker
#+BEGIN_SRC makefile :exports none
DC=$($(SET_D_COMPILER))
DC_FLAGS=$($(shell echo $(SET_D_COMPILER)_FLAGS))
@@ -77,7 +77,7 @@ DC_FLAGS_DEBUG_SET=\
#+end_src
**** compiler conditional settings (depending on selected D compiler)
-#+name: makefile
+#+name: makefile_maker
#+BEGIN_SRC makefile :exports none
ifeq ($(DC), $(DMD))
DC_FLAGS_DEBUG :=$(shell echo $(DC_FLAGS_DEBUG_SET))
@@ -91,17 +91,17 @@ endif
#+end_src
*** Project Details :project:sdp:
-#+name: makefile
+#+name: makefile_maker
#+BEGIN_SRC makefile :exports none
PRG_NAME=sdp
PRG_SRC=$(PRG_NAME).d
-PRG_SRCDIR=./lib/$(PRG_NAME)
+PRG_SRCDIR=./lib
PRG_BIN=$(PRG_NAME)
PRG_BINDIR=bin
#+end_src
*** Emacs Org settings :settings:emacs:org:
-#+name: makefile
+#+name: makefile_maker
#+BEGIN_SRC makefile :exports none
# ORG
EMACSLISP=/usr/share/emacs/site-lisp
@@ -130,7 +130,7 @@ ORGDIR=$(shell echo `pwd`)
*** build commands [+1]
**** build rebuild
-#+name: makefile
+#+name: makefile_maker
#+BEGIN_SRC makefile :exports none
all: build
@@ -142,7 +142,7 @@ build: $(PRG_SRCDIR)/$(PRG_SRC)
rebuild: $(PRG_SRCDIR)/$(PRG_SRC) $(PRG_BINDIR)/$(PRG_BIN).o clean build
#+end_src
**** debug
-#+name: makefile
+#+name: makefile_maker
#+BEGIN_SRC makefile :exports none
debug: $(PRG_SRCDIR)/$(PRG_SRC)
@@ -166,7 +166,7 @@ debug_gdc: $(PRG_SRCDIR)/$(PRG_SRC)
$(PRG_SRCDIR)/$(PRG_SRC)
#+end_src
**** release
-#+name: makefile
+#+name: makefile_maker
#+BEGIN_SRC makefile :exports none
release: distclean_and_init tangle $(PRG_SRCDIR)/$(PRG_SRC)
@@ -176,7 +176,7 @@ release: distclean_and_init tangle $(PRG_SRCDIR)/$(PRG_SRC)
#+end_src
*** init clean distclean etc.
-#+name: makefile
+#+name: makefile_maker
#+BEGIN_SRC makefile :exports none
init:
mkdir -p $(PRG_SRCDIR); \
@@ -197,7 +197,7 @@ distclean_and_init: init $(PRG_BINDIR) expunge
#+end_src
*** Org Babel Tangle batch process command
-#+name: makefile
+#+name: makefile_maker
#+BEGIN_SRC makefile :exports none
tangle:
for f in $(ORGFILELIST); do \
@@ -220,14 +220,14 @@ tangle:
#+end_src
*** Git snapshot
-#+name: makefile
+#+name: makefile_maker
#+BEGIN_SRC makefile :exports none
gitsnapshot: distclean_and_init tangle
git commit -a
#+end_src
** phony
-#+name: makefile
+#+name: makefile_maker
#+BEGIN_SRC makefile :exports none
.PHONY : all build rebuild debug release \
clean distclean init \
@@ -266,5 +266,5 @@ emacs --batch -Q -q \
** makefile: :makefile:
#+name: tangle_ao_rgx
#+BEGIN_SRC makefile :tangle makefile :exports none :noweb yes
-<<makefile>>
+<<makefile_maker>>
#+end_src