upgrade wip/overwrite
authorRalph Ronnquist <ralph.ronnquist@gmail.com>
Fri, 15 Jul 2022 01:36:37 +0000 (11:36 +1000)
committerRalph Ronnquist <ralph.ronnquist@gmail.com>
Fri, 15 Jul 2022 01:36:37 +0000 (11:36 +1000)
Makefile

index 8103f1464ba42d2544210b150ffe3b6cbdd96e13..c2a0ba66fdb62d94ab77c8c75ca851008ac50d71 100644 (file)
--- 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,6 +18,9 @@ fusefile: fusefile.o
 clean:
        rm -f $(BINS)
 
+README.html: README.adoc
+       asciidoctor $< > $@
+
 # Building a debian package
 
 SBINDIR = $(DESTDIR)/usr/sbin