X-Git-Url: https://git.rrq.au/?a=blobdiff_plain;f=Makefile;h=b0ca2be22a702f5811cdf0db7c5dcc8d3e199b7e;hb=e46d32a7a6068d96db47e39c959105ee2acda8ba;hp=7b12aef4a4e9111d5ef0cbba7c1feb7eee95d05d;hpb=5846647533bff279426f3556dd5c0c01516604d9;p=rrq%2Ffusefile.git diff --git a/Makefile b/Makefile index 7b12aef..b0ca2be 100644 --- a/Makefile +++ b/Makefile @@ -2,7 +2,11 @@ BINS = fusefile default: $(BINS) -fusefile: CFLAGS = -Wall -D_FILE_OFFSET_BITS=64 +ifneq (${DEBUG},) +fusefile: CFLAGS += -DDEBUG=1 -g +endif + +fusefile: CFLAGS += -Wall -D_FILE_OFFSET_BITS=64 fusefile: LDFLAGS = -lfuse -pthread .INTERMEDIATE: fusefile.o @@ -14,12 +18,15 @@ fusefile: fusefile.o clean: rm -f $(BINS) +README.html: README.adoc + asciidoctor $< > $@ + # Building a debian package -SBINDIR = $(DESTDIR)/usr/local/sbin -MAN8DIR = $(DESTDIR)/usr/local/share/man/man8 +SBINDIR = $(DESTDIR)/usr/sbin +MAN8DIR = $(DESTDIR)/usr/share/man/man8 -SBINFILES = fusefile +SBINFILES = fusefile fusedisk MAN8FILES = fusefile.8 INSTALLTARGETS = $(addprefix $(SBINDIR)/,$(SBINFILES))