-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathMakefile
More file actions
37 lines (30 loc) · 749 Bytes
/
Makefile
File metadata and controls
37 lines (30 loc) · 749 Bytes
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
35
36
37
LATEX = lualatex
GLOSSARIES = makeglossaries
BIBER = biber
TOOLS += mkdir mkfile mksym mknod mkfifo
TOOLS += lssym lsdir
TOOLS += unlink rmdir
TOOLS += lsxattr getxattr setxattr
TOOLS += stat perms
TOOLS += chmod
ifeq ($(shell uname -s),Darwin)
TOOLS += chflags lsflags getacl setacl
endif
ifeq ($(shell uname -s),Linux)
TOOLS += lsattr chattr getcap setcap proccap
LDFLAGS += -lcap
endif
all: fsdoc.pdf
tools: $(TOOLS:%=tools/%)
fsdoc.pdf: fsdoc.tex
$(LATEX) $<
$(GLOSSARIES) $(<:%.tex=%)
$(BIBER) $(<:%.tex=%)
$(LATEX) $<
$(LATEX) $<
tools/%: tools/%.c
$(CC) $(CFLAGS) -o $@ $< $(LDFLAGS)
clean:
$(RM) fsdoc.pdf
$(RM) *.aux *.glg *.glo *.log *.ist *.out *.toc *.aux *.gls *.bbl *.bcf *.blg *.run.xml
$(RM) $(TOOLS:%=tools/%)