root/trunk/etc/Makefile.am

Revision 3477, 0.8 KB (checked in by alonbl, 9 months ago)

Make sure we generate opensc.conf every time

There is no dependency for autoconf variables, and
we provide the opensc.conf for Windows MSCVER build.

  • Property svn:eol-style set to native
  • Property svn:keywords set to Author Date Id Revision
Line 
1MAINTAINERCLEANFILES = $(srcdir)/Makefile.in
2DISTCLEANFILES = opensc.conf
3
4SUFFIXES = .in
5
6dist_noinst_DATA = opensc.conf.in
7nodist_noinst_DATA = opensc.conf        # For Windows MSVC build
8
9# Make sure we build this every time
10# as there is no dependency for this.
11# Can be removed if MSVC is not requried.
12force:
13opensc.conf: opensc.conf.in force
14
15.in:
16        sed \
17                -e 's|@pkgdatadir[@]|$(pkgdatadir)|g' \
18                -e 's|@DEFAULT_PCSC_PROVIDER[@]|$(DEFAULT_PCSC_PROVIDER)|g' \
19                < $< > $@
20
21sysconf_DATA=#required in order to create dir
22install-exec-hook:      install-sysconfDATA opensc.conf
23        if [ -f "$(DESTDIR)$(sysconfdir)/opensc.conf" ]; then \
24                $(INSTALL_DATA) opensc.conf "$(DESTDIR)$(sysconfdir)/opensc.conf.new"; \
25        else \
26                $(INSTALL_DATA) opensc.conf "$(DESTDIR)$(sysconfdir)/opensc.conf"; \
27        fi
Note: See TracBrowser for help on using the browser.