File: Makefile.am

package info (click to toggle)
opensc 0.26.1-3
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid
  • size: 11,420 kB
  • sloc: ansic: 178,823; xml: 6,327; sh: 2,115; makefile: 1,023; cpp: 304; lex: 92
file content (54 lines) | stat: -rw-r--r-- 1,828 bytes parent folder | download | duplicates (3)
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
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
CV_CERTS = DESRCACC100001 DESCHSMCVCA00001

MAINTAINERCLEANFILES = $(srcdir)/Makefile.in
DISTCLEANFILES = opensc.conf.example

EXTRA_DIST = $(CV_CERTS) Makefile.mak

SUFFIXES = .in

dist_noinst_DATA = opensc.conf opensc.conf.example.in
nodist_noinst_DATA = opensc.conf.example

# Make sure we build this every time
# as there is no dependency for this.
# Can be removed if MSVC is not required.
force:
opensc.conf.example: opensc.conf.example.in force

.in:
	$(AM_V_GEN)sed \
		-e 's|@pkgdatadir[@]|$(pkgdatadir)|g' \
		-e 's|@DEBUG_FILE[@]|$(DEBUG_FILE)|g' \
		-e 's|@DEFAULT_PCSC_PROVIDER[@]|$(DEFAULT_PCSC_PROVIDER)|g' \
		-e 's|@DEFAULT_SM_MODULE[@]|$(DEFAULT_SM_MODULE)|g' \
		-e 's|@DEFAULT_SM_MODULE_PATH[@]|$(DEFAULT_SM_MODULE_PATH)|g' \
		-e 's|@DYN_LIB_EXT[@]|$(DYN_LIB_EXT)|g' \
		-e 's|@LIBDIR[@]|$(LIBDIR)|g' \
		-e 's|@LIB_PRE[@]|$(LIB_PRE)|g' \
		-e 's|@PROFILE_DIR[@]|$(PROFILE_DIR)|g' \
		-e 's|@PROFILE_DIR_DEFAULT[@]|$(PROFILE_DIR_DEFAULT)|g' \
		< $< > $@

install-exec-hook: opensc.conf.example
	$(MKDIR_P) "$(DESTDIR)$(sysconfdir)"
	if [ -f "$(DESTDIR)$(sysconfdir)/opensc.conf" ]; then \
		$(INSTALL_DATA) $(srcdir)/opensc.conf "$(DESTDIR)$(sysconfdir)/opensc.conf.new"; \
	else \
		$(INSTALL_DATA) $(srcdir)/opensc.conf "$(DESTDIR)$(sysconfdir)/opensc.conf"; \
	fi
	$(MKDIR_P) "$(DESTDIR)$(docdir)"
	$(INSTALL_DATA) opensc.conf.example "$(DESTDIR)$(docdir)/opensc.conf";

uninstall-hook: opensc.conf.example
	rm -f "$(DESTDIR)$(sysconfdir)/opensc.conf.new" "$(DESTDIR)$(sysconfdir)/opensc.conf"
	rm -f "$(DESTDIR)$(docdir)/opensc.conf"

if ENABLE_OPENPACE
install-data-local:
	$(MKDIR_P) "$(DESTDIR)$(CVCDIR)"
	for cert in $(CV_CERTS);   do $(INSTALL_DATA) $(srcdir)/$${cert} "$(DESTDIR)$(CVCDIR)";  done

uninstall-local:
	for cert in $(CV_CERTS);   do rm -f "$(DESTDIR)$(CVCDIR)/$${cert}";  done
endif