Skip to content
Newer
Older
100644 72 lines (51 sloc) 2.88 KB
6433534 fixed .gitmodules generation procedure
Yurii Rashkovskii authored
1 GIT_BRANCH=$(shell git branch|egrep "^\*."|sed s/\*\ //)
2 GIT_BRANCH_REMOTE=$(shell git config branch.${GIT_BRANCH}.remote)
3 GIT_BASE_RAW=$(shell echo `git config remote.${GIT_BRANCH_REMOTE}.url` | sed s/amqpfs.git$$//)
9d98a72 generate .gitmodules in makefile
Yurii Rashkovskii authored
4 GIT_BASE=$(strip ${GIT_BASE_RAW})
5
faa746c Works on Snow Leopard
Yurii Rashkovskii authored
6 ifeq ($(shell uname),Darwin)
7 FUSE_CFLAGS = -D__DARWIN_64_BIT_INO_T=0 -mmacosx-version-min=10.5
925520f @michaelklishin If Erlang on OS X comes from MacPorts, extend FUSE_CFLAGS so that it …
michaelklishin authored
8 ifeq ($(shell which erl),/opt/local/bin/erl)
9 FUSE_CFLAGS += -I/opt/local/lib/erlang/usr/include/
10 endif
faa746c Works on Snow Leopard
Yurii Rashkovskii authored
11 endif
12
6a7c94b First very minimalistic amqpfs skeleton (no amqp use yet)
Yurii Rashkovskii authored
13 all: main
14
15 main: submodules
73ac415 Some progress on writing and related API (largely WIP)
Yurii Rashkovskii authored
16 erl -pa ebin vendor/fuserl/fuserl/src -make
007e995 Simplistic submodules build procedure
Yurii Rashkovskii authored
17
50dcdfd Simpler make procedure -- no need to run submodule init/update anymor…
Yurii Rashkovskii authored
18 submodules: init-submodules erabbitmq fuserl fuserldrv erlang-ossp-uuid
19
20 init-submodules:
9d98a72 generate .gitmodules in makefile
Yurii Rashkovskii authored
21 @cat gitmodules | awk '{ gsub(/%BASE%/,"$(GIT_BASE)"); print }' > .gitmodules
50dcdfd Simpler make procedure -- no need to run submodule init/update anymor…
Yurii Rashkovskii authored
22 @git submodule init
23 @git submodule update
df5b302 Use UUIDs for user_id (instance names) and for message ids
Yurii Rashkovskii authored
24
25 erlang-ossp-uuid: $(dir vendor/erlang-ossp-uuid)
26 @cd vendor/erlang-ossp-uuid ; git submodule init
27 @cd vendor/erlang-ossp-uuid ; git submodule update
28 cd vendor/erlang-ossp-uuid ; $(MAKE)
a07aa15 added erabbitmq submodule
Yurii Rashkovskii authored
29
30 erabbitmq: rabbitmq-erlang-client
31 cd vendor/erabbitmq ; $(MAKE)
007e995 Simplistic submodules build procedure
Yurii Rashkovskii authored
32
ab9bee2 Faster makefile build procedure for rabbitmq-erlang-client. It used t…
Yurii Rashkovskii authored
33 rabbitmq-erlang-client: vendor/rabbitmq-erlang-client/dist/amqp_client.ez
34
35 vendor/rabbitmq-erlang-client/dist/amqp_client.ez: $(dir vendor/rabbitmq-erlang-client/src)
007e995 Simplistic submodules build procedure
Yurii Rashkovskii authored
36 cd vendor/rabbitmq-codegen ; $(MAKE)
37 cd vendor/rabbitmq-server ; $(MAKE)
38 cd vendor/rabbitmq-erlang-client ; $(MAKE)
39
26b0434 minor correction for the Makefile
Yurii Rashkovskii authored
40 fuserl: vendor/fuserl/fuserl/Makefile $(dir vendor/fuserl/fuserl/src)
2fcdf38 faster makefile
Yurii Rashkovskii authored
41 cd vendor/fuserl/fuserl ; $(MAKE)
42
43 vendor/fuserl/fuserl/Makefile: $(dir vendor/fuserl/fuserl)
44 cd vendor/fuserl/fuserl ; ./configure
45
46 fuserldrv: vendor/fuserl/fuserldrv/src/fuserldrv
47 @true
48
49 vendor/fuserl/fuserldrv/src/fuserldrv: vendor/fuserl/fuserldrv/Makefile
9667287 makefile bugfix
Yurii Rashkovskii authored
50 cd vendor/fuserl/fuserldrv ; $(MAKE)
2fcdf38 faster makefile
Yurii Rashkovskii authored
51
52 vendor/fuserl/fuserldrv/Makefile: $(dir vendor/fuserl/fuserldrv)
faa746c Works on Snow Leopard
Yurii Rashkovskii authored
53 cd vendor/fuserl/fuserldrv ; CFLAGS="$(FUSE_CFLAGS)" ./configure
1a4cc6e starting amqpfs server just got much easier
Yurii Rashkovskii authored
54
3d97165 run and run-simple makefile tasks now try to build amqpfs, just in ca…
Yurii Rashkovskii authored
55 run: main
be8042d Added an (incomplete) ramfs implementation in samples
Yurii Rashkovskii authored
56 @erl -sname amqpfs -pa samples ebin vendor/erlang-ossp-uuid/ebin vendor/fuserl/fuserl/src/ vendor/erabbitmq/ebin/ vendor/rabbitmq-erlang-client/ebin/ vendor/rabbitmq-server/ebin/ +A 32 -eval "application:load(fuserl)" -config configs/development -s erabbitmq -s amqpfs
50a65e0 make task for running rabbitmq
Yurii Rashkovskii authored
57
3d97165 run and run-simple makefile tasks now try to build amqpfs, just in ca…
Yurii Rashkovskii authored
58 run-simple: main
df5b302 Use UUIDs for user_id (instance names) and for message ids
Yurii Rashkovskii authored
59 @erl -sname fstest -pa tests ebin vendor/erlang-ossp-uuid/ebin vendor/fuserl/fuserl/src/ vendor/erabbitmq/ebin/ vendor/rabbitmq-erlang-client/ebin/ vendor/rabbitmq-server/ebin/ +A 32 -eval "application:load(fuserl)" -config configs/development -s erabbitmq -s amqpfs -eval "amqpfs_provider:start(simple_amqpfs_provider)"
240e917 run-simple runs without -boot start_sasl now
Yurii Rashkovskii authored
60
61 run-simple-sasl: main
df5b302 Use UUIDs for user_id (instance names) and for message ids
Yurii Rashkovskii authored
62 @erl -sname fstest -pa tests ebin vendor/erlang-ossp-uuid/ebin vendor/fuserl/fuserl/src/ vendor/erabbitmq/ebin/ vendor/rabbitmq-erlang-client/ebin/ vendor/rabbitmq-server/ebin/ -boot start_sasl +A 32 -eval "application:load(fuserl)" -config configs/development -s erabbitmq -s amqpfs -eval "amqpfs_provider:start(simple_amqpfs_provider)"
9c8ea76 run-simple makefile task, a shortcut to run simple amqpfs provider fr…
Yurii Rashkovskii authored
63
50a65e0 make task for running rabbitmq
Yurii Rashkovskii authored
64 clean:
65 rm -rf tmp
66 rm -rf ebin/*.beam
67 rm -rf tests/*.beam
68
69 rabbit:
70 RABBITMQ_MNESIA_BASE=tmp RABBITMQ_LOG_BASE=tmp ./vendor/rabbitmq-server/scripts/rabbitmq-server
925520f @michaelklishin If Erlang on OS X comes from MacPorts, extend FUSE_CFLAGS so that it …
michaelklishin authored
71
Something went wrong with that request. Please try again.