Skip to content
This repository

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
  • 2 commits
  • 1 file changed
  • 0 comments
  • 1 contributor
Mar 20, 2013
Vagrant User doc: disable haskdogs
FIXME: hasktags errors out, so disabling for now
73637a9
Vagrant User build: split install into deploy + install
'make deploy' is run in vm

the output of that is then transferred to the server (this is currently
manual, till i figure out how i want to handle this)

'make install' is then run on the server
be770ee

Showing 1 changed file with 18 additions and 7 deletions. Show diff stats Hide diff stats

  1. +18 7 blog/Makefile
25 blog/Makefile
@@ -6,6 +6,7 @@ v = 1
6 6
7 7 prefix = $(root)
8 8 bindir = $(prefix)/bin
  9 +deploydir = $(HOME)/workspace
9 10 blogInitd = /etc/init.d/blog
10 11
11 12 root = $(realpath $(CURDIR)/../..)
@@ -17,9 +18,10 @@ logFiles = $(stderr) blog.prof blog.summary
17 18 launcherFile= $(root)/bin/blog-launcher
18 19 RTSOPTS = $(GHCRTS) +RTS -pa -sblog.summary -xc -RTS
19 20 define launcherContent
20   -#! /bin/sh
21   -pwd
22   -exec $(bindir)/blog $(RTSOPTS) $$@ 1> /dev/null 2> $(stderr)
  21 +#!/bin/sh
  22 +#pwd
  23 +#exec $(bindir)/blog $(RTSOPTS) $$@ 1> /dev/null 2> $(stderr)
  24 +exec $(bindir)/blog $$@ 1> /dev/null 2> $(stderr)
23 25 endef
24 26 export launcherContent
25 27
@@ -50,14 +52,23 @@ clean:
50 52
51 53 .PHONY: doc
52 54 doc:
53   - haskdogs -e
  55 + #haskdogs -e
54 56
55   -.PHONY: install
56   -install: blog blog-launcher
  57 +.PHONY: deploy
  58 +deployBin = $(INSTALL) `$(WHICH) $(1)` $(deploydir); upx $(deploydir)/$(1);
  59 +deploy: blog blog-launcher
57 60 cabal install
  61 + $(call map,deployBin,blog publish-entry)
  62 + $(INSTALL) $(launcherFile) $(deploydir)
  63 +
  64 +.PHONY: install
  65 +installBin = $(INSTALL) `$(WHICH) $(1)` $(bindir)
  66 +install:
  67 + upx -d `$(WHICH) blog`
  68 + upx -d `$(WHICH) publish-entry`
58 69 sudo $(blogInitd) stop
59 70 $(call map,rotateLog,$(logFiles))
60   - $(INSTALL) `$(WHICH) blog` $(bindir)
  71 + $(call map,installBin,blog publish-entry blog-launcher)
61 72 sudo $(blogInitd) start
62 73 @sleep 5
63 74 $(MAKE) error-file

No commit comments for this range

Something went wrong with that request. Please try again.