comparison Makefile @ 226:37668661af76

Install all themese without hardwiring their names.
author Steve Kemp <steve@steve.org.uk>
date Fri, 02 May 2008 21:01:03 +0100
parents f9446e440ff1
children dfb2cf5a5882
comparison
equal deleted inserted replaced
225:ea9cb3e9020b 226:37668661af76
56 56
57 57
58 # 58 #
59 # Install to /usr/local/bin 59 # Install to /usr/local/bin
60 # 60 #
61 # Install the themes without hardwiring a list of them.
62 #
61 install: 63 install:
64 mkdir -p ${prefix}/etc
62 cp ./etc/chroniclerc ${prefix}/etc/chroniclerc 65 cp ./etc/chroniclerc ${prefix}/etc/chroniclerc
63 mkdir -p ${prefix}/usr/local/bin 66 mkdir -p ${prefix}/usr/local/bin
64 cp ./bin/chronicle ${prefix}/usr/local/bin 67 cp ./bin/chronicle ${prefix}/usr/local/bin
65 cp ./bin/chronicle-spooler ${prefix}/usr/local/bin 68 cp ./bin/chronicle-spooler ${prefix}/usr/local/bin
66 mkdir -p ${prefix}/usr/share/chronicle/themes/xml 69 mkdir -p ${prefix}/usr/share/chronicle/themes/xml
67 cp -r ./themes/xml/*.* ${prefix}/usr/share/chronicle/themes/xml 70 cp -r ./themes/xml/*.* ${prefix}/usr/share/chronicle/themes/xml
68 mkdir -p ${prefix}/usr/share/chronicle/themes/default 71 for i in themes/*/; do \
69 cp -r ./themes/default/*.* ${prefix}/usr/share/chronicle/themes/default 72 mkdir -p ${prefix}/usr/share/chronicle/themes/$$(basename $$i) ;\
70 mkdir -p ${prefix}/usr/share/chronicle/themes/blog.steve.org.uk 73 cp -r ./themes/$$(basename $$i)/*.* ${prefix}/usr/share/chronicle/themes/$$(basename $$i)/ ;\
71 cp -r ./themes/blog.steve.org.uk/*.* ${prefix}/usr/share/chronicle/themes/blog.steve.org.uk/ 74 done
72 mkdir -p ${prefix}/usr/share/chronicle/themes/blog.mail-scanning.com
73 cp -r ./themes/blog.mail-scanning.com/*.* ${prefix}/usr/share/chronicle/themes/blog.mail-scanning.com/
74 mkdir -p ${prefix}/usr/share/chronicle/themes/copyrighteous
75 cp -r ./themes/copyrighteous/*.* ${prefix}/usr/share/chronicle/themes/copyrighteous
76 mkdir -p ${prefix}/usr/share/chronicle/themes/blocky
77 cp -r ./themes/blocky/*.* ${prefix}/usr/share/chronicle/themes/blocky
78 75
79 76
80 # 77 #
81 # Make a new release tarball, and make a GPG signature. 78 # Make a new release tarball, and make a GPG signature.
82 # 79 #
133 130
134 steve: 131 steve:
135 ./bin/chronicle --theme-dir=./themes --theme=default --url-prefix=http://www.steve.org.uk/Software/chronicle/demo/ --pre-build="/bin/rm -rf ./output" --post-build="rsync -v -r output/* steve@www.steve.org.uk:/home/www/www.steve.org.uk/htdocs/Software/chronicle/demo/" --no-comments --no-cache 132 ./bin/chronicle --theme-dir=./themes --theme=default --url-prefix=http://www.steve.org.uk/Software/chronicle/demo/ --pre-build="/bin/rm -rf ./output" --post-build="rsync -v -r output/* steve@www.steve.org.uk:/home/www/www.steve.org.uk/htdocs/Software/chronicle/demo/" --no-comments --no-cache
136 ./bin/chronicle --theme-dir=./themes --theme=copyrighteous --url-prefix=http://www.steve.org.uk/Software/chronicle/demo2/ --pre-build="/bin/rm -rf ./output" --post-build="rsync -v -r output/* steve@www.steve.org.uk:/home/www/www.steve.org.uk/htdocs/Software/chronicle/demo2/" --no-comments --no-cache 133 ./bin/chronicle --theme-dir=./themes --theme=copyrighteous --url-prefix=http://www.steve.org.uk/Software/chronicle/demo2/ --pre-build="/bin/rm -rf ./output" --post-build="rsync -v -r output/* steve@www.steve.org.uk:/home/www/www.steve.org.uk/htdocs/Software/chronicle/demo2/" --no-comments --no-cache
137 ./bin/chronicle --theme-dir=./themes --theme=blocky --url-prefix=http://www.steve.org.uk/Software/chronicle/demo3/ --pre-build="/bin/rm -rf ./output" --post-build="rsync -v -r output/* steve@www.steve.org.uk:/home/www/www.steve.org.uk/htdocs/Software/chronicle/demo3/" --no-comments --no-cache 134 ./bin/chronicle --theme-dir=./themes --theme=blocky --url-prefix=http://www.steve.org.uk/Software/chronicle/demo3/ --pre-build="/bin/rm -rf ./output" --post-build="rsync -v -r output/* steve@www.steve.org.uk:/home/www/www.steve.org.uk/htdocs/Software/chronicle/demo3/" --no-comments --no-cache
135 ./bin/chronicle --theme-dir=./themes --theme=leftbar --url-prefix=http://www.steve.org.uk/Software/chronicle/demo4/ --pre-build="/bin/rm -rf ./output" --post-build="rsync -v -r output/* steve@www.steve.org.uk:/home/www/www.steve.org.uk/htdocs/Software/chronicle/demo4/" --no-comments --no-cache