File: Makefile

package info (click to toggle)
morsmall 0.3.0-8
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid, trixie
  • size: 356 kB
  • sloc: ml: 1,327; makefile: 32; sh: 19
file content (33 lines) | stat: -rw-r--r-- 586 bytes parent folder | download | duplicates (4)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
.PHONY: build install uninstall doc tests clean

ifneq ($(PREFIX),)
INSTALL_ARGS := $(INSTALL_ARGS) --prefix $(PREFIX)
endif

ifneq ($(LIBDIR),)
INSTALL_ARGS := $(INSTALL_ARGS) --libdir $(LIBDIR)
endif

build:
	dune build @install
#	ln -sf _build/install/default/bin bin
	ln -sf _build/install/default/lib lib

install:
	dune install $(INSTALL_ARGS)

uninstall:
	dune uninstall $(INSTALL_ARGS)

doc:
	dune build @doc
	ln -sf _build/default/_doc doc

tests:
	dune build tests/run.exe
	_build/default/tests/run.exe

clean:
	dune clean
	rm -f bin lib doc
	rm -f morsmall_test_report_*.org