Index: Makefile ================================================================== --- Makefile +++ Makefile @@ -1,5 +1,6 @@ +APPFS_VERSION = 0.1 CC = gcc PKG_CONFIG = pkg-config FUSE_CFLAGS = $(shell $(PKG_CONFIG) --cflags fuse) CFLAGS_DEBUG = -Wall -g3 -ggdb3 -DDEBUG=1 -UNDEBUG -O0 -DAPPFS_EXIT_PATH=1 CFLAGS_RELEASE = -Wall -UDEBUG -DNDEBUG=1 -O3 @@ -56,10 +57,19 @@ if [ ! -d '$(DESTDIR)$(bindir)' ]; then mkdir -p '$(DESTDIR)$(bindir)'; chmod 755 '$(DESTDIR)$(bindir)'; fi cp appfsd '$(DESTDIR)$(sbindir)/' cp appfs-cache '$(DESTDIR)$(sbindir)/' cp appfs-mkfs '$(DESTDIR)$(bindir)/' +appfs-$(APPFS_VERSION).cpio: appfs-cache appfs-cert appfs-mkfs + rm -rf __TMP__ + mkdir -p __TMP__/appfs/noarch-noarch/$(APPFS_VERSION)/bin + cp appfs-cache appfs-cert appfs-mkfs __TMP__/appfs/noarch-noarch/$(APPFS_VERSION)/bin + chmod 755 __TMP__/appfs/noarch-noarch/$(APPFS_VERSION)/bin/* + ( cd __TMP__ && find appfs/noarch-noarch/$(APPFS_VERSION) | cpio --owner 0:0 -H newc -o ) > appfs-$(APPFS_VERSION).cpio.new + rm -rf __TMP__ + mv appfs-$(APPFS_VERSION).cpio.new appfs-$(APPFS_VERSION).cpio + clean: rm -f appfsd appfsd.o rm -f appfsd.tcl.h rm -f sha1.o sha1.tcl.h rm -f pki.tcl.new pki.tcl.h