summaryrefslogtreecommitdiff
path: root/Makefile
blob: d3dc23d844d87e3c3969c81859357ae05a7572d8 (plain)
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
CFLAGS += -Wall -Wextra -Wpedantic
CFLAGS += -DFUSE_USE_VERSION=31
CFLAGS += `pkg-config --cflags fuse3 xcb xcb-util`
LDLIBS += `pkg-config --libs fuse3 xcb xcb-util`

PREFIX ?= /usr/local
BINDIR ?= $(PREFIX)/bin
DATADIR ?= $(PREFIX)/share
MANDIR ?= $(DATADIR)/man/man1

all: clipfs

clipfs:

clean:
	rm -f *.o clipfs

install: clipfs
	mkdir -p $(DESTDIR)$(MANDIR)
	mkdir -p $(DESTDIR)$(BINDIR)
	cp -f clipfs $(DESTDIR)$(BINDIR)/clipfs
	cp -f clipfs.1 $(DESTDIR)$(MANDIR)/clipfs.1
	chmod 755 $(DESTDIR)$(BINDIR)/clipfs
	chmod 644 $(DESTDIR)$(MANDIR)/clipfs.1

uninstall:
	rm -f $(DESTDIR)$(BINDIR)/clipfs
	rm -f $(DESTDIR)$(MANDIR)/clipfs.1

.PHONY: all clean install uninstall