liboptcfg
diff Makefile @ 1:8fd2858c6a29
example (test) program
author | John Tsiombikas <nuclear@member.fsf.org> |
---|---|
date | Sat, 14 Nov 2015 14:12:30 +0200 |
parents | 10b89befcaa9 |
children | aca7267dfee0 |
line diff
1.1 --- a/Makefile Fri Nov 13 23:48:31 2015 +0200 1.2 +++ b/Makefile Sat Nov 14 14:12:30 2015 +0200 1.3 @@ -1,3 +1,7 @@ 1.4 +# installation prefix, change it to install elsewhere 1.5 +PREFIX = /usr/local 1.6 +# ----------------------------- 1.7 + 1.8 src = $(wildcard src/*.c) 1.9 obj = $(src:.c=.o) 1.10 name = optcfg 1.11 @@ -41,6 +45,7 @@ 1.12 cp $(alib) $(DESTDIR)$(PREFIX)/lib/$(alib) 1.13 cp $(solib) $(DESTDIR)$(PREFIX)/lib/$(solib) 1.14 [ -n "$(soname)" ] && cd $(DESTDIR)$(PREFIX)/lib && \ 1.15 + rm -f $(soname) $(ldname) && \ 1.16 ln -s $(solib) $(soname) && \ 1.17 ln -s $(soname) $(ldname) || true 1.18