Check-in [921f12e64a]
Overview
Comment:Updated install target
Downloads: Tarball | ZIP archive | SQL archive
Timelines: family | ancestors | descendants | both | trunk
Files: files | file ages | folders
SHA1: 921f12e64a744f9e421b3a8d77c6e88614550640
User & Date: rkeene on 2014-09-10 07:58:15
Other Links: manifest | tags
Context
2014-09-10
08:23
Updated to expire cache of server index periodically check-in: 977195a680 user: rkeene tags: trunk
07:58
Updated install target check-in: 921f12e64a user: rkeene tags: trunk
07:55
Added basic usage check-in: 6a30dedf77 user: rkeene tags: trunk
Changes

Modified Makefile from [93a7ad3349] to [be705a2fe3].

     2      2   PKG_CONFIG = pkg-config
     3      3   CFLAGS = -Wall $(shell $(PKG_CONFIG) --cflags fuse) $(shell $(PKG_CONFIG) --cflags sqlite3) $(TCL_CFLAGS)
     4      4   LDFLAGS = $(TCL_LDFLAGS)
     5      5   LIBS = $(shell $(PKG_CONFIG) --libs fuse) $(shell $(PKG_CONFIG) --libs sqlite3) $(TCL_LIBS)
     6      6   PREFIX = /usr/local
     7      7   prefix = $(PREFIX)
     8      8   bindir = $(prefix)/bin
            9  +sbindir = $(prefix)/sbin
     9     10   
    10     11   ifneq ($(TCLKIT_SDK_DIR),)
    11     12   TCLCONFIG_SH_PATH = $(TCLKIT_SDK_DIR)/lib/tclConfig.sh
    12     13   TCL_LDFLAGS = -Wl,-R,$(TCLKIT_SDK_DIR)/lib
    13     14   export TCLKIT_SDK_DIR
    14     15   else
    15     16   TCLCONFIG_SH_PATH = $(shell echo 'puts [::tcl::pkgconfig get libdir,install]' | tclsh)/tclConfig.sh
................................................................................
    26     27   	$(CC) $(CPPFLAGS) $(CFLAGS) -o appfsd.o -c appfsd.c
    27     28   
    28     29   appfsd.tcl.h: appfsd.tcl
    29     30   	sed 's@[\\"]@\\&@g;s@^@   "@;s@$$@\\n"@' appfsd.tcl > appfsd.tcl.h.new
    30     31   	mv appfsd.tcl.h.new appfsd.tcl.h
    31     32   
    32     33   install: appfsd
    33         -	cp appfsd $(bindir)
           34  +	if [ ! -d '$(DESTDIR)$(sbindir)' ]; then mkdir -p '$(DESTDIR)$(sbindir)'; chmod 755 '$(DESTDIR)$(sbindir)'; fi
           35  +	cp appfsd '$(DESTDIR)$(sbindir)/'
    34     36   
    35     37   clean:
    36     38   	rm -f appfsd appfsd.o
    37     39   	rm -f appfsd.tcl.h
    38     40   
    39     41   distclean: clean
    40     42   
    41     43   .PHONY: all test clean distclean install