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
|
# Makefile.am
# copyright (C) 2004 by Frank Mori Hess
# email : fmhess@users.sourceforge.net
#
# This Makefile.am is free software; you can redistribute it and/or modify
# it under the terms of the GNU General Public License as published by
# the Free Software Foundation; either version 2 of the License, or
# (at your option) any later version.
EXTRA_DIST = 99-agilent_82357a.rules.in
CLEANFILES = 99-agilent_82357a.rules
USB_FIRMWARE_DIR=$(datadir)/usb
UDEV_RULES_DIR=/usr/lib/udev/rules.d
do_subst = $(SED) -e 's,[@]sbindir[@],$(sbindir),g'\
-e 's,[@]datadir[@],$(datadir),g'\
-e 's,[@]libdir[@],$(libdir),g'\
-e 's,[@]UDEV_LIBDIR[@],$(UDEV_LIBDIR),g'
99-agilent_82357a.rules: 99-agilent_82357a.rules.in
$(do_subst) < $(srcdir)/99-agilent_82357a.rules.in >99-agilent_82357a.rules
all-local: 99-agilent_82357a.rules
install-data-local:
$(INSTALL) -d $(DESTDIR)$(USB_FIRMWARE_DIR)/agilent_82357a
test -d $(DESTDIR)$(UDEV_RULES_DIR) && test -e $(DESTDIR)$(UDEV_RULES_DIR)/99-agilent_82357a.rules ||\
$(INSTALL_DATA) -D 99-agilent_82357a.rules $(DESTDIR)$(UDEV_RULES_DIR)/99-agilent_82357a.rules
|