Skip to content
Newer
Older
100644 35 lines (26 sloc) 805 Bytes
8edfc53 @noss Initial commit
authored
1
c029f78 @avtobiff Added install target in Makefile.
avtobiff authored
2 .PHONY: all test clean install
3
4 VERSION = $(shell sed -n '/vsn/ {s/.*,\s*"\([0-9][0-9.]*\)".*/\1/; p}' \
5 pgsql.app.in)
6
7 PREFIX ?= /usr
8 ERL_ROOT = $(PREFIX)/lib/erlang
9 LIBDIR = /lib
10 DISTDIR = pgsql-$(VERSION)
11
3d9db3b @noss Change makefile to be able to run eunit tests.
authored
12
8edfc53 @noss Initial commit
authored
13 all:
1e1e26a @noss Adding .app file
authored
14 cp -f pgsql.app.in ebin/pgsql.app
3d9db3b @noss Change makefile to be able to run eunit tests.
authored
15 @cd src && erl -make
8edfc53 @noss Initial commit
authored
16
3d9db3b @noss Change makefile to be able to run eunit tests.
authored
17 test:
24ac5d1 @noss Initial work on a test-suite for pgsql.
authored
18 escript test/squery.escript test/test.config
3910e62 @noss Test of parametric query
authored
19 escript test/pquery.escript test/test.config
8e983e2 @noss Adding test for prepare-calls
authored
20 escript test/prepare.escript test/test.config
24ac5d1 @noss Initial work on a test-suite for pgsql.
authored
21 # @cd test && erl -make
22 # @erl -noshell -pa test \
23 # -eval 'eunit:test({dir, "test"}, [verbose]).' \
24 # -s init stop
8edfc53 @noss Initial commit
authored
25
3d9db3b @noss Change makefile to be able to run eunit tests.
authored
26 clean:
1e1e26a @noss Adding .app file
authored
27 rm -f ebin/*.beam ebin/*.app
3d9db3b @noss Change makefile to be able to run eunit tests.
authored
28 rm -f test/*.beam
c029f78 @avtobiff Added install target in Makefile.
avtobiff authored
29
30 install:
31 # create dist directory
32 mkdir -p $(DESTDIR)$(ERL_ROOT)$(LIBDIR)/$(DISTDIR)
33 # copy and install files
34 cp -a ebin $(DESTDIR)$(ERL_ROOT)$(LIBDIR)/$(DISTDIR)
Something went wrong with that request. Please try again.