forked from Taywee/args
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathMakefile
More file actions
34 lines (26 loc) · 660 Bytes
/
Makefile
File metadata and controls
34 lines (26 loc) · 660 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
DESTDIR ?= /usr/local
.PHONY: clean pages runtests uninstall install installman
uninstall:
-rm $(DESTDIR)/include/args.hxx
-rmdir $(DESTDIR)/include
-rm $(DESTDIR)/share/man/man3/args_*.3.bz2
-rmdir -p $(DESTDIR)/share/man/man3
install:
mkdir -p $(DESTDIR)/include
cp args.hxx $(DESTDIR)/include
installman: doc/man
mkdir -p $(DESTDIR)/share/man/man3
cp doc/man/man3/*.3.bz2 $(DESTDIR)/share/man/man3
clean:
-rm -rv build doc
pages:
-rm -r pages/*
doxygen Doxyfile
cp -rv doc/html/* pages/
doc/man:
doxygen Doxyfile
bzip2 doc/man/man3/*.3
runtests:
cmake -B build
cmake --build build --parallel
cd build && ctest --output-on-failure