Commit 659176ba authored by Maxime Perrotin's avatar Maxime Perrotin

Use gprinstall to install the library

parent 143525f7
ITERATORS_PREFIX?=/usr/local ITERATORS_PREFIX?=$(HOME)/.local
all: all:
@echo You can install with "sudo make install" @echo You can install with "sudo make install"
@echo A testcase can be build from source with "make test" @echo A testcase can be build from source with "make test"
install: install:
gprbuild -p asn1_iterators.gpr
gprinstall -p -XLIBRARY_TYPE=dynamic --build-name=shared asn1_iterators.gpr
install -d $(ITERATORS_PREFIX)/share/taste install -d $(ITERATORS_PREFIX)/share/taste
install -m 644 stg/ada_iterators-iterators-adb.stg $(ITERATORS_PREFIX)/share/taste install -m 644 stg/ada_iterators-iterators-adb.stg $(ITERATORS_PREFIX)/share/taste
install -m 644 stg/ada_iterators-iterators-ads.stg $(ITERATORS_PREFIX)/share/taste install -m 644 stg/ada_iterators-iterators-ads.stg $(ITERATORS_PREFIX)/share/taste
install -m 644 stg/ada_iterators.stg $(ITERATORS_PREFIX)/share/taste install -m 644 stg/ada_iterators.stg $(ITERATORS_PREFIX)/share/taste
install -m 755 src/taste-asn1-iterators $(ITERATORS_PREFIX)/bin install -m 755 src/taste-asn1-iterators $(ITERATORS_PREFIX)/bin
install -d /usr/share/ada/adainclude/asn1_iterators #install -d /usr/share/ada/adainclude/asn1_iterators
install -m 644 src/asn1_iterators.gpr /usr/share/ada/adainclude #install -m 644 src/asn1_iterators.gpr /usr/share/ada/adainclude
install -d /usr/lib/i386-linux-gnu/ada/adalib/asn1_iterators #install -d /usr/lib/i386-linux-gnu/ada/adalib/asn1_iterators
install -m 644 src/*.ad? /usr/share/ada/adainclude/asn1_iterators #install -m 644 src/*.ad? /usr/share/ada/adainclude/asn1_iterators
cd src && mkdir -p tmp && cd tmp && gnat make -c -O2 ../*.ad? && \ #cd src && mkdir -p tmp && cd tmp && gnat make -c -O2 ../*.ad? && \
install -m 644 *.ali /usr/lib/i386-linux-gnu/ada/adalib/asn1_iterators && \ # install -m 644 *.ali /usr/lib/i386-linux-gnu/ada/adalib/asn1_iterators && \
ar r libasn1_iterators.a *.o && cp libasn1_iterators.a /usr/lib/i386-linux-gnu && \ # ar r libasn1_iterators.a *.o && cp libasn1_iterators.a /usr/lib/i386-linux-gnu && \
cd ../.. && rm -rf src/tmp # cd ../.. && rm -rf src/tmp
test_install: clean test_install: clean
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment