URI: 
       Add Makefile - postreich - Unnamed repository; edit this file 'description' to name the repository.
   DIR Log
   DIR Files
   DIR Refs
   DIR README
       ---
   DIR commit 38d93a291fc4336ff48f355dc61ee65ef4f2813c
   DIR parent 7f8d3f6bae6b5b37d53bcf8eca705448439ddee7
  HTML Author: Scarlett McAllister <no+reply@roygbyte.com>
       Date:   Sun, 28 Jan 2024 21:14:45 -0400
       
       Add Makefile
       
       Diffstat:
         A Makefile                            |      20 ++++++++++++++++++++
       
       1 file changed, 20 insertions(+), 0 deletions(-)
       ---
   DIR diff --git a/Makefile b/Makefile
       @@ -0,0 +1,20 @@
       +# Path, including hostname and any sub directories.
       +# for example: roygbyte.com/postreich
       +HOSTNAME = localhost
       +
       +dist:
       +        rm -R dist
       +        mkdir dist
       +        rsync --exclude="#*#" --exclude="*mailboxes" --exclude=".*" --exclude="*pubkeys" -l -p -r src/geomyidae/ dist/geomyidae
       +        mkdir dist/geomyidae/api/mailboxes
       +        mkdir dist/geomyidae/api/pubkeys
       +        sed -i 's/<HOSTNAME>/$(HOSTNAME)/' dist/geomyidae/index.dcgi
       +
       +test:
       +        rm src/geomyidae/api/mailboxes
       +        rm src/geomyidae/api/pubkeys
       +        ln -s ../../../test/mailboxes src/geomyidae/api
       +        ln -s ../../../test/pubkeys src/geomyidae/api
       +        cd src && ./serve-geomyidae.sh
       +
       +.PHONY: dist test