File: Makefile

package info (click to toggle)
postgresql-ocaml 5.3.2-1
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid
  • size: 448 kB
  • sloc: ml: 2,924; ansic: 1,380; makefile: 34
file content (15 lines) | stat: -rw-r--r-- 345 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
TARGETS = postgresql.cma libpostgresql_stubs.a

.PHONY: all clean clean-compile-commands

all: compile_commands.json
	@dune build $(TARGETS)

clean: clean-compile-commands
	@dune clean

compile_commands.json: config/dune config/discover.ml $(wildcard *.c *.h)
	@dune rules | dune-compiledb

clean-compile-commands:
	@rm -f compile_commands.json