Check-in [549ad8e690]
Not logged in

Many hyperlinks are disabled.
Use anonymous login to enable hyperlinks.

Overview
Comment:make BLOG variable
Timelines: family | ancestors | descendants | both | trunk
Files: files | file ages | folders
SHA1:549ad8e6904e9923ef9594f898d554b79a9a6270
User & Date: brandon@invergo.net 2013-02-19 17:52:39
Context
2013-02-19
17:56
minor README update check-in: ec22b94456 user: brandon@invergo.net tags: trunk
17:52
make BLOG variable check-in: 549ad8e690 user: brandon@invergo.net tags: trunk
17:52
clarify README check-in: 572b5b6a61 user: brandon@invergo.net tags: trunk
Changes

Changes to Makefile.

    14     14   # template. Common m4 macros may be stored in a macros
    15     15   # file.
    16     16   
    17     17   MACROS    := macros.m4
    18     18   SRC	  := src
    19     19   DST       := dst
    20     20   TEMPLATES := templates
           21  +BLOG      := news
    21     22   PAGES     := $(SRC)/pages
    22         -POSTS     := $(SRC)/news
           23  +POSTS     := $(SRC)/$(BLOG)
    23     24   MAIN_T    := $(TEMPLATES)/main.html.m4
    24     25   BLOG_T    := $(TEMPLATES)/blog.html.m4
    25     26   POST_T	  := $(TEMPLATES)/post.html.m4
    26     27   PAGE_T    := $(TEMPLATES)/page.html.m4
    27     28   ATOM_T    := $(TEMPLATES)/atom.xml.m4
    28     29   ATOM_E_T  := $(TEMPLATES)/atom_entry.xml.m4
    29     30   
    30     31   # Build a list of all the files that should exist when the
    31     32   # baking is done. We do this by getting a list of all the
    32     33   # source files and rewriting pathnames and file suffixes as
    33     34   # necessary.
    34     35   raw_posts  := $(shell find $(POSTS) -name index.html* -prune -o -type f)
    35         -raw_posts  := $(raw_posts:$(POSTS)/%=$(DST)/news/%)
           36  +raw_posts  := $(raw_posts:$(POSTS)/%=$(DST)/$(BLOG)/%)
    36     37   raw_posts  := $(raw_posts:.m4=)
    37     38   raw_posts  := $(filter-out %.inc %.swp %~ \#%,$(raw_posts))
    38     39   raw_posts  := $(raw_posts:.md=.html)
    39     40   
    40         -raw_pages  := $(shell find $(SRC) -type d -name news -prune -o -type f)
           41  +raw_pages  := $(shell find $(SRC) -type d -name $(BLOG) -prune -o -type f)
    41     42   raw_pages  := $(raw_pages:$(SRC)/%=$(DST)/%)
    42     43   raw_pages  := $(raw_pages:.m4=)
    43     44   raw_pages  := $(filter-out %.inc %.swp %~ \#%,$(raw_pages))
    44     45   raw_pages  := $(raw_pages:.md=.html)
    45     46   
    46     47   sp :=
    47     48   sp += # add space