File: Makefile

package info (click to toggle)
botch 0.24-6.1
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid
  • size: 1,084,624 kB
  • sloc: xml: 11,924,892; ml: 4,489; python: 3,890; sh: 1,268; makefile: 334
file content (23 lines) | stat: -rw-r--r-- 572 bytes parent folder | download | duplicates (6)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
md=$(wildcard *.markdown)
html=$(patsubst %.markdown,%.html,$(md))
dot=$(wildcard *.dot)
png=$(patsubst %.dot,%.png,$(dot))
docdir=/usr/share/doc/botch

.PHONY: all
all: $(html) $(png)

%.html: %.markdown
	sed -e 's/\[\([^]]\+\)\](\([^\/)]\+\))/<a href="\2.html">\1<\/a>/' -e 's#https://gitlab.mister-muffin.de/uploads/debian-bootstrap/botch/.\{10\}/\([^)]\+\)#\1#' $< | markdown > $@

%.png: %.dot
	dot -T png $< > $@

.PHONY: install
install: all
	mkdir -p $(DESTDIR)$(docdir)/wiki
	cp $(html) $(png) $(DESTDIR)$(docdir)/wiki

.PHONY: clean
clean:
	rm -f $(html) $(png)