Check-in [0e2d3be820]
Not logged in

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

Overview
Comment:variablize markdown
Timelines: family | ancestors | descendants | both | trunk
Files: files | file ages | folders
SHA1:0e2d3be8206959cfb368b6f76f98a7f820cd21c5
User & Date: brandon@invergo.net 2013-02-19 17:01:19
Context
2013-02-19
17:05
change atom generator check-in: 3e2ea030d3 user: brandon@invergo.net tags: trunk
17:01
variablize markdown check-in: 0e2d3be820 user: brandon@invergo.net tags: trunk
16:59
initial commit check-in: ce85597cc6 user: brandon@invergo.net tags: trunk
Changes

Changes to Makefile.

2
3
4
5
6
7
8


9
10
11
12
13
14
15
..
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
# Get SSH user/doc root from auth.mk
include auth.mk
RSYNC = rsync
SSH_PORT = 22
SSH_USER ?= 
DOC_ROOT ?= 
RSYNC_DELETE = #--delete



# Copies files from src/ to dst/. Any .html files are
# interpreted by GNU m4 and wrapped in a the GNU m4
# template. Common m4 macros may be stored in a macros
# file.

MACROS    := macros.m4
................................................................................
	@echo "\"}\"})" >> $(POSTS)/index.html.m4

atom:
	@echo "==> building feed"
	@m4 -P $(MACROS) $(ATOM_T) > $(SRC)/atom.xml
	@for f in $(sorted_posts); do \
		link="`basename $$f .md.m4`.html";\
		markdown $$f | m4 -D "__URL"=$$link -P $(MACROS) - $(ATOM_E_T) \
			| head -n -4 >> $(SRC)/atom.xml; \
	done
	@echo "</feed>" >> $(SRC)/atom.xml


$(SRC)/%.html.m4: $(SRC)/%.md.m4 
	@markdown $< > $@

$(SRC)/%: $(SRC)/%.m4 $(MACROS)
	@m4 -P $(MACROS) $< > $@

$(DST)/%: $(SRC)/%
	@install -m 644 -D $< $@








>
>







 







|






|







2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
..
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
# Get SSH user/doc root from auth.mk
include auth.mk
RSYNC = rsync
SSH_PORT = 22
SSH_USER ?= 
DOC_ROOT ?= 
RSYNC_DELETE = #--delete

MARKDOWN = markdown

# Copies files from src/ to dst/. Any .html files are
# interpreted by GNU m4 and wrapped in a the GNU m4
# template. Common m4 macros may be stored in a macros
# file.

MACROS    := macros.m4
................................................................................
	@echo "\"}\"})" >> $(POSTS)/index.html.m4

atom:
	@echo "==> building feed"
	@m4 -P $(MACROS) $(ATOM_T) > $(SRC)/atom.xml
	@for f in $(sorted_posts); do \
		link="`basename $$f .md.m4`.html";\
		$(MARKDOWN) $$f | m4 -D "__URL"=$$link -P $(MACROS) - $(ATOM_E_T) \
			| head -n -4 >> $(SRC)/atom.xml; \
	done
	@echo "</feed>" >> $(SRC)/atom.xml


$(SRC)/%.html.m4: $(SRC)/%.md.m4 
	@$(MARKDOWN) $< > $@

$(SRC)/%: $(SRC)/%.m4 $(MACROS)
	@m4 -P $(MACROS) $< > $@

$(DST)/%: $(SRC)/%
	@install -m 644 -D $< $@