Skip to content

Commit

Permalink
Merge pull request xapi-project#6 from vbmithr/master
Browse files Browse the repository at this point in the history
Mostly improved Makefile
  • Loading branch information
Jon Ludlam committed Apr 10, 2013
2 parents ea71271 + cd8ff5b commit 508ca56
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 7 deletions.
16 changes: 12 additions & 4 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -2,21 +2,29 @@ BINDIR?=/tmp/bin
ETCDIR?=/tmp/etc
INITDIR?=/tmp/etc/init.d

dist/build/squeezed/squeezed:
all: squeezed

dist/setup: squeezed.obuild
obuild configure

.PHONY: dist/build/squeezed/squeezed
dist/build/squeezed/squeezed: dist/setup
obuild build

dist/build/test/test:
obuild configure
.PHONY: dist/build/test/test
dist/build/test/test: dist/setup
obuild build

test: dist/build/test/test
./dist/build/test/test

squeezed: dist/build/squeezed/squeezed

install: dist/build/squeezed/squeezed
install -D -m 0755 dist/build/squeezed/squeezed ${BINDIR}/squeezed
install -D -m 0644 scripts/squeezed.conf ${ETCDIR}/squeezed.conf
install -D -m 0755 scripts/init.d-squeezed ${INITDIR}/squeezed

.PHONY: uninstall
uninstall:
rm -f ${BINDIR}/squeezed
Expand All @@ -25,4 +33,4 @@ uninstall:

.PHONY: clean
clean:
rm -rf dist
obuild clean
3 changes: 0 additions & 3 deletions src/squeezed.ml
Original file line number Diff line number Diff line change
Expand Up @@ -12,9 +12,6 @@
* GNU Lesser General Public License for more details.
*)
open Xcp_service
open Pervasiveext
open Squeezed_state
open Memory_interface

module D = Debug.Make(struct let name = Memory_interface.service_name end)
open D
Expand Down

0 comments on commit 508ca56

Please sign in to comment.