| 35 |
install: install_ccid install_ccidtwin |
install: install_ccid install_ccidtwin |
| 36 |
|
|
| 37 |
install_ccid: libccid.la |
install_ccid: libccid.la |
| 38 |
mkdir -p $(CCID_BUNDLE)/Contents/$(BUNDLE_HOST)/ |
$(mkinstalldirs) $(DESTDIR)$(usbdropdir)/$(CCID_BUNDLE)/Contents/$(BUNDLE_HOST)/ |
| 39 |
cp .libs/$(CCID_LIB) $(CCID_BUNDLE)/Contents/$(BUNDLE_HOST)/$(CCID_LIB).$(VERSION) |
cp .libs/$(CCID_LIB) $(DESTDIR)$(usbdropdir)/$(CCID_BUNDLE)/Contents/$(BUNDLE_HOST)/$(CCID_LIB).$(VERSION) |
| 40 |
sed s/VERSION/$(VERSION)/ $(srcdir)/Info.plist | sed s/TARGET/$(CCID_LIB)/ > $(CCID_BUNDLE)/Contents/Info.plist |
sed s/VERSION/$(VERSION)/ $(srcdir)/Info.plist | sed s/TARGET/$(CCID_LIB)/ > $(DESTDIR)$(usbdropdir)/$(CCID_BUNDLE)/Contents/Info.plist |
|
$(mkinstalldirs) $(DESTDIR)$(usbdropdir) |
|
|
cp -r $(CCID_BUNDLE) $(DESTDIR)$(usbdropdir) |
|
| 41 |
|
|
| 42 |
install_ccidtwin: libccidtwin.la |
install_ccidtwin: libccidtwin.la |
|
perl -ne "s|TARGET|$(CCIDFTWIN_PATH)/$(CCIDTWIN_LIB).$(VERSION)| ; print" $(srcdir)/reader.conf.in > reader.conf |
|
| 43 |
$(mkinstalldirs) $(DESTDIR)$(CCIDFTWIN_PATH) |
$(mkinstalldirs) $(DESTDIR)$(CCIDFTWIN_PATH) |
| 44 |
cp .libs/$(CCIDTWIN_LIB) $(DESTDIR)$(CCIDFTWIN_PATH)/$(CCIDTWIN_LIB).$(VERSION) |
cp .libs/$(CCIDTWIN_LIB) $(DESTDIR)$(CCIDFTWIN_PATH)/$(CCIDTWIN_LIB).$(VERSION) |
| 45 |
if [ -e $(DESTDIR)/etc/reader.conf ] ; \ |
if [ -e $(DESTDIR)/etc/reader.conf ] ; \ |
| 46 |
then \ |
then \ |
| 47 |
@echo "Edit existing /etc/reader.conf" ; \ |
echo "Edit existing /etc/reader.conf" ; \ |
| 48 |
else \ |
else \ |
| 49 |
$(mkinstalldirs) $(DESTDIR)/etc ; \ |
$(mkinstalldirs) $(DESTDIR)/etc ; \ |
| 50 |
cp reader.conf $(DESTDIR)/etc/ ; \ |
perl -ne "s|TARGET|$(CCIDFTWIN_PATH)/$(CCIDTWIN_LIB).$(VERSION)| ; print" $(srcdir)/reader.conf.in > $(DESTDIR)/etc/reader.conf ; \ |
| 51 |
fi |
fi |
| 52 |
|
|
| 53 |
uninstall: uninstall_ccid uninstall_ccidtwin |
uninstall: uninstall_ccid uninstall_ccidtwin |