diff options
-rw-r--r-- | Makefile | 1 | ||||
-rwxr-xr-x | configure | 10 |
2 files changed, 9 insertions, 2 deletions
@@ -28,6 +28,7 @@ install: install -d $(DESTDIR)/usr/share/calp/www rsync -a static $(DESTDIR)/usr/share/calp/www # TODO main, tzget + @env CACHE_DIR=$(DESTDIR)/var/cache/calp/ ./tzget README: README.in ./main text < README.in | sed "s/<<today>>/`date -I`/" > README @@ -17,9 +17,15 @@ ;; when zoneinfo (use-modules (ice-9 rdelim)) +(define *develop* #t) + +(define PREFIX //) +(define CACHE_DIR (string-append PREFIX // "var/cache/calp")) +(define LIBEXEC (if *develop* here (string-append PREFIX // "usr/lib/calp")) + (define pipe - (-> here - (string-append "/tzget") + (-> LIBEXEC + (string-append // "tzget") ((@ (ice-9 popen) open-input-pipe)))) (define path (read-line pipe)) (define names (string-split (read-line pipe) #\space)) |