|
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 | |
|---|
| 1 | MAINTAINERCLEANFILES = $(srcdir)/Makefile.in |
|---|
| 2 | DISTCLEANFILES = opensc.conf |
|---|
| 3 | |
|---|
| 4 | SUFFIXES = .in |
|---|
| 5 | |
|---|
| 6 | dist_noinst_DATA = opensc.conf.in |
|---|
| 7 | nodist_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. |
|---|
| 12 | force: |
|---|
| 13 | opensc.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 | |
|---|
| 21 | sysconf_DATA=#required in order to create dir |
|---|
| 22 | install-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 |
|---|