forked from godunko/adaside
-
Notifications
You must be signed in to change notification settings - Fork 2
/
Copy pathMakefile
22 lines (18 loc) · 778 Bytes
/
Makefile
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
GPRBUILD_FLAGS = -p -j0
PREFIX ?= /usr
GPRDIR ?= $(PREFIX)/share/gpr
LIBDIR ?= $(PREFIX)/lib
INSTALL_PROJECT_DIR ?= $(DESTDIR)$(GPRDIR)
INSTALL_INCLUDE_DIR ?= $(DESTDIR)$(PREFIX)/include/ada-pretty
INSTALL_LIBRARY_DIR ?= $(DESTDIR)$(LIBDIR)
INSTALL_ALI_DIR ?= ${INSTALL_LIBRARY_DIR}/ada-pretty
GPRINSTALL_FLAGS = --prefix=$(PREFIX) --sources-subdir=$(INSTALL_INCLUDE_DIR)\
--lib-subdir=$(INSTALL_ALI_DIR) --project-subdir=$(INSTALL_PROJECT_DIR)\
--link-lib-subdir=$(INSTALL_LIBRARY_DIR)
all:
gprbuild $(GPRBUILD_FLAGS) -P gnat/ada_pretty.gpr
gprbuild $(GPRBUILD_FLAGS) -P gnat/ada_pretty_test.gpr
install:
gprinstall $(GPRINSTALL_FLAGS) -p -P gnat/ada_pretty.gpr
clean:
gprclean -q -P gnat/ada_pretty.gpr