summaryrefslogtreecommitdiff
path: root/Makefile
diff options
context:
space:
mode:
authorRadek Podgorny <radek@podgorny.cz>2009-09-13 23:27:48 +0200
committerRadek Podgorny <radek@podgorny.cz>2009-09-13 23:27:48 +0200
commit3833b223b7e5146a3386b0acc910440bc38f8456 (patch)
tree05bd95ef15eff1a431b34ddf50de7eab611b498e /Makefile
parentbb83ed71696a6033e3a2d539cf55d5cb497e5531 (diff)
downloadunionfs-fuse-3833b223b7e5146a3386b0acc910440bc38f8456.tar.gz
Makefile improvements by Yann E. Morin.
Diffstat (limited to 'Makefile')
-rw-r--r--Makefile18
1 files changed, 7 insertions, 11 deletions
diff --git a/Makefile b/Makefile
index 99fae43..eb79a28 100644
--- a/Makefile
+++ b/Makefile
@@ -1,17 +1,13 @@
-CFLAGS += -Wall
-CPPFLAGS += -D_FILE_OFFSET_BITS=64 -DFUSE_USE_VERSION=26
-#CPPFLAGS += -D_FILE_OFFSET_BITS=64 -DFUSE_USE_VERSION=26 -DHAVE_SETXATTR
-LDFLAGS +=
-DESTDIR?=/usr/local
-
-LIB = -lfuse -lpthread -lm
+PREFIX=/usr/local
+BINDIR=/bin
build:
- make -C src/
+ $(MAKE) -C src/
clean:
- make -C src/ clean
+ $(MAKE) -C src/ clean
install: build
- cp src/unionfs $(DESTDIR)/sbin/
- cp man/unionfs-fuse.8 $(DESTDIR)/share/man/man8/
+ install -d $(DESTDIR)$(PREFIX)$(BINDIR)
+ install -m 0755 src/unionfs $(DESTDIR)$(PREFIX)$(BINDIR)
+ install -m 0644 man/unionfs-fuse.8 $(DESTDIR)$(PREFIX)/share/man/man8/