forked from opencryptoki/libica
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Makefile.am
32 lines (26 loc) · 1.1 KB
/
Makefile.am
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
ACLOCAL_AMFLAGS = -I m4
SUBDIRS = doc include src test
dist_doc_DATA = AUTHORS ChangeLog INSTALL LICENSE README.md
EXTRA_DIST = libica.map libica.spec
MAJOR := `echo $(VERSION) | cut -d. -f1`
coverage: check
@echo -e "\n-----------------";
@echo -e "icastats coverage";
@echo -e "-----------------\n";
cd ${top_builddir}/src && gcov *.gcda
@echo -e "\n---------------";
@echo -e "libica coverage";
@echo -e "---------------\n";
cd ${top_builddir}/src && gcov .libs/*.gcda
if ICA_FIPS
install-data-hook:
$(INSTALL) -m 0444 ${top_builddir}/src/.libs/.libica.so.$(VERSION).hmac $(DESTDIR)$(libdir)
cd $(DESTDIR)$(libdir) && ln -sf .libica.so.$(VERSION).hmac .libica.so.$(MAJOR).hmac
$(INSTALL) -m 0444 ${top_builddir}/src/.libs/.libica-cex.so.$(VERSION).hmac $(DESTDIR)$(libdir)
cd $(DESTDIR)$(libdir) && ln -sf .libica-cex.so.$(VERSION).hmac .libica-cex.so.$(MAJOR).hmac
uninstall-hook:
rm -f $(DESTDIR)$(libdir)/.libica.so.$(MAJOR).hmac
rm -f $(DESTDIR)$(libdir)/.libica.so.$(VERSION).hmac
rm -f $(DESTDIR)$(libdir)/.libica-cex.so.$(MAJOR).hmac
rm -f $(DESTDIR)$(libdir)/.libica-cex.so.$(VERSION).hmac
endif