-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathMakefile
More file actions
25 lines (20 loc) · 811 Bytes
/
Makefile
File metadata and controls
25 lines (20 loc) · 811 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
# Copyright 2021 Stephen Warren <swarren@wwwdotorg.org>
# SPDX-License-Identifier: MIT
DESTDIR ?=
PREFIX ?= /usr
CPPFLAGS+=-std=c++17
nestedlog-helper: CC=$(CXX)
nestedlog-helper: LDLIBS+=-lfuse
nestedlog-helper: nestedlog-helper.o
.PHONY: clean
clean:
rm -f nestedlog-helper nestedlog-helper.o
# FIXME: This skips installing Python modules, docs, and example scripts,
# because we don't need to do that when building via Debian packaging. This
# rule should be enhanced to install all those things for people not building
# Debian packages.
.PHONY: install
install: nestedlog-helper
install -D -o 0 -g 0 -m 0755 -t "$(DESTDIR)$(PREFIX)/bin" nestedlog
install -D -o 0 -g 0 -m 0755 -t "$(DESTDIR)$(PREFIX)/bin" nestedlog-email
install -D -o 0 -g 0 -m 04755 -t "$(DESTDIR)$(PREFIX)/bin" nestedlog-helper