File: Makefile

package info (click to toggle)
notcurses 3.0.16%2Bdfsg-2
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid
  • size: 18,776 kB
  • sloc: ansic: 50,385; cpp: 17,806; python: 1,123; sh: 230; makefile: 44
file content (21 lines) | stat: -rw-r--r-- 327 bytes parent folder | download | duplicates (2)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
.DELETE_ON_ERROR:
.PHONY: all book serve clean
.DEFAULT_GOAL:=all

SRC:=$(wildcard src/*.c)
BIN:=$(foreach src, $(SRC), $(addprefix book/,$(notdir $(basename $(src)))))

all: $(BIN)

serve: book
	mdbook serve

book: $(SRC)
	mdbook build

book/%: src/%.c
	@mkdir -p $(@D)
	$(CC) -o $@ $< -lnotcurses

clean:
	rm -rf $(BIN) book