File: Makefile.install

package info (click to toggle)
opentoken 4.0b-2
  • links: PTS, VCS
  • area: main
  • in suites: squeeze
  • size: 1,812 kB
  • ctags: 57
  • sloc: ada: 12,643; makefile: 129; java: 37; sh: 6
file content (31 lines) | stat: -rw-r--r-- 842 bytes parent folder | download | duplicates (2)
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
# install OpenToken in GNAT tree
# (ediff "../windows_release/Makefile.install" "../linux_release/Makefile.install")

# Where opentoken library should be installed
# Default is into current GNAT directory
INSTALL_DIR ?= $(dir $(shell which gnatls))..
prefix=$(INSTALL_DIR)

all: install

I_INC	= $(prefix)/include/opentoken
I_LIB	= $(prefix)/lib/opentoken
I_GPR	= $(prefix)/lib/gnat

# run this from the main Makefile to build the library
install:
	rm -rf $(I_INC)
	rm -rf $(I_LIB)
	mkdir -p $(I_INC)
	mkdir -p $(I_LIB)
	mkdir -p $(I_GPR)
	cp -p lib/*.ali $(I_LIB)
	chmod a-w $(I_LIB)/*.ali
	cp -p lib/libopentoken* $(I_LIB)
	chmod 644 $(I_LIB)/libopentoken*
	cd $(I_LIB) && ln -sf libopentoken.so.* libopentoken.so
	cp -p ../../*.ad[bs] $(I_INC)
	cp -p ../../Language_Lexers/*.ad[bs] $(I_INC)
	cp -p ../opentoken.gpr $(I_GPR)

# end of file