Check-in [e0aaed08b6]
Overview
Comment:Added target to generate a CPIO archive
Downloads: Tarball | ZIP archive | SQL archive
Timelines: family | ancestors | descendants | both | trunk
Files: files | file ages | folders
SHA1: e0aaed08b6572f7018944b9499a85ab2754020d0
User & Date: rkeene on 2014-11-17 21:25:38
Other Links: manifest | tags
Context
2014-11-18
00:06
Added comment a distclean target for archive check-in: 1beb5adeec user: rkeene tags: trunk
2014-11-17
21:25
Added target to generate a CPIO archive check-in: e0aaed08b6 user: rkeene tags: trunk
21:25
Updated to try to send a SIGHUP to AppFSd after updating cache check-in: e2d1bd2959 user: rkeene tags: trunk
Changes

Modified Makefile from [fdccdbca53] to [dd261ab484].


1
2
3
4
5
6
7

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
CFLAGS = $(FUSE_CFLAGS) $(TCL_CFLAGS) $(CFLAGS_RELEASE)
LDFLAGS = $(TCL_LDFLAGS)
>







1
2
3
4
5
6
7
8
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
CFLAGS = $(FUSE_CFLAGS) $(TCL_CFLAGS) $(CFLAGS_RELEASE)
LDFLAGS = $(TCL_LDFLAGS)
54
55
56
57
58
59
60









61
62
63
64
65
66
67
68
69
70
71
72
install: appfsd appfs-cache appfs-mkfs
	if [ ! -d '$(DESTDIR)$(sbindir)' ]; then mkdir -p '$(DESTDIR)$(sbindir)'; chmod 755 '$(DESTDIR)$(sbindir)'; fi
	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)/'










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

distclean: clean

mrproper: distclean
	rm -f pki.tcl

.PHONY: all install clean distclean mrproper







>
>
>
>
>
>
>
>
>












55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
install: appfsd appfs-cache appfs-mkfs
	if [ ! -d '$(DESTDIR)$(sbindir)' ]; then mkdir -p '$(DESTDIR)$(sbindir)'; chmod 755 '$(DESTDIR)$(sbindir)'; fi
	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

distclean: clean

mrproper: distclean
	rm -f pki.tcl

.PHONY: all install clean distclean mrproper