File: Makefile

package info (click to toggle)
bluebrain-hpc-coding-conventions 1.0.0%2Bgit20221201-2
  • links: PTS, VCS
  • area: main
  • in suites: bookworm, forky, sid, trixie
  • size: 624 kB
  • sloc: python: 2,021; cpp: 220; makefile: 29
file content (34 lines) | stat: -rw-r--r-- 596 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
# Targets:
#
#   README.md: rebuild the Markdown documentation (default target)
#
#   all: alias for README.md
#
#   clean: remove top generated files
#
#   distclean: clean + remove intermediate files
#

PANDOC ?= pandoc

SNIPPETS = $(wildcard snippets/*.cpp)

all: README.md

clean:
	$(RM) README.md README.html

distclean: clean
	$(RM) .clang-format

# README.html
.md.html: $<
	$(PANDOC) -s -c github-pandoc.css $< -o $@
README.html: github-pandoc.css

# README.md
README.md: README.md.jinja formatting.py $(SNIPPETS)
	../../bin/format --lang c++
	./formatting.py $< $@

.SUFFIXES: .md .html