about summary refs log tree commit homepage
path: root/Makefile
diff options
context:
space:
mode:
authorEric Wong <normalperson@yhbt.net>2009-08-09 15:33:48 -0700
committerEric Wong <normalperson@yhbt.net>2009-08-09 15:36:25 -0700
commitd4581cb9a1d178cb31416eb30d501a0e46878e45 (patch)
tree77e141f88b76eec83b368aba5222455077356c9b /Makefile
parent8947b985335cbf9b30cffb9e79f9ed7a1899e298 (diff)
downloadpcu-d4581cb9a1d178cb31416eb30d501a0e46878e45.tar.gz
Add `pcu-sync' command
This can be useful for calling fsync(2)/fdatasync(2) on
individual files (and/or their containing directories).  This
can be used when a system-wide sync(2) is too expensive on
a busy system.
Diffstat (limited to 'Makefile')
-rw-r--r--Makefile3
1 files changed, 2 insertions, 1 deletions
diff --git a/Makefile b/Makefile
index 7871952..5d8a09e 100644
--- a/Makefile
+++ b/Makefile
@@ -22,8 +22,9 @@ LDFLAGS = -Wl,-O1
 
 pcu-mincore: mincore.c compat-util.h
 pcu-fadvise: fadvise.c compat-util.h
+pcu-sync: sync.c compat-util.h
 
-PCU_BIN := pcu-fadvise pcu-mincore
+PCU_BIN := pcu-fadvise pcu-mincore pcu-sync
 
 $(PCU_BIN):
         $(CC) $(CFLAGS) $(LDFLAGS) -o $@+ $<