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  +APPFS_VERSION = 0.1
     1      2   CC = gcc
     2      3   PKG_CONFIG = pkg-config
     3      4   FUSE_CFLAGS = $(shell $(PKG_CONFIG) --cflags fuse)
     4      5   CFLAGS_DEBUG = -Wall -g3 -ggdb3 -DDEBUG=1 -UNDEBUG -O0 -DAPPFS_EXIT_PATH=1
     5      6   CFLAGS_RELEASE = -Wall -UDEBUG -DNDEBUG=1 -O3
     6      7   CFLAGS = $(FUSE_CFLAGS) $(TCL_CFLAGS) $(CFLAGS_RELEASE)
     7      8   LDFLAGS = $(TCL_LDFLAGS)
................................................................................
    54     55   install: appfsd appfs-cache appfs-mkfs
    55     56   	if [ ! -d '$(DESTDIR)$(sbindir)' ]; then mkdir -p '$(DESTDIR)$(sbindir)'; chmod 755 '$(DESTDIR)$(sbindir)'; fi
    56     57   	if [ ! -d '$(DESTDIR)$(bindir)' ]; then mkdir -p '$(DESTDIR)$(bindir)'; chmod 755 '$(DESTDIR)$(bindir)'; fi
    57     58   	cp appfsd '$(DESTDIR)$(sbindir)/'
    58     59   	cp appfs-cache '$(DESTDIR)$(sbindir)/'
    59     60   	cp appfs-mkfs '$(DESTDIR)$(bindir)/'
    60     61   
           62  +appfs-$(APPFS_VERSION).cpio: appfs-cache appfs-cert appfs-mkfs
           63  +	rm -rf __TMP__
           64  +	mkdir -p __TMP__/appfs/noarch-noarch/$(APPFS_VERSION)/bin
           65  +	cp appfs-cache appfs-cert appfs-mkfs __TMP__/appfs/noarch-noarch/$(APPFS_VERSION)/bin
           66  +	chmod 755 __TMP__/appfs/noarch-noarch/$(APPFS_VERSION)/bin/*
           67  +	( cd __TMP__ && find appfs/noarch-noarch/$(APPFS_VERSION) | cpio --owner 0:0 -H newc -o ) > appfs-$(APPFS_VERSION).cpio.new
           68  +	rm -rf __TMP__
           69  +	mv appfs-$(APPFS_VERSION).cpio.new appfs-$(APPFS_VERSION).cpio
           70  +
    61     71   clean:
    62     72   	rm -f appfsd appfsd.o
    63     73   	rm -f appfsd.tcl.h
    64     74   	rm -f sha1.o sha1.tcl.h
    65     75   	rm -f pki.tcl.new pki.tcl.h
    66     76   
    67     77   distclean: clean
    68     78   
    69     79   mrproper: distclean
    70     80   	rm -f pki.tcl
    71     81   
    72     82   .PHONY: all install clean distclean mrproper