git-svn-id: https://svn.code.sf.net/p/gphoto/code/trunk/libgphoto2@5214 67ed7778-7388-44ab-90cf-0a291f65f57c
38 lines
856 B
Makefile
38 lines
856 B
Makefile
EXTRA_DIST = usbcam.console usbcam.group usbcam.user
|
|
|
|
# no need to build or install the following on non-linux systems
|
|
if HAVE_LINUX
|
|
|
|
docdir = @DOC_DIR@/linux-hotplug
|
|
doc_DATA = usbcam.console usbcam.group usbcam.user
|
|
|
|
INCLUDES = \
|
|
-I$(top_srcdir)/libgphoto2 \
|
|
-I$(top_srcdir)/libgphoto2_port/libgphoto2_port
|
|
|
|
noinst_PROGRAMS = print-usb-usermap
|
|
|
|
# FIXME: This should only be built if target system is linux
|
|
print_usb_usermap_SOURCE = print-usb-usermap.c
|
|
print_usb_usermap_LDADD = ../../libgphoto2/libgphoto2.la
|
|
|
|
USERMAP = gphoto2-usb.usermap
|
|
|
|
install-data-local: print-usb-usermap
|
|
./print-usb-usermap > $(USERMAP)
|
|
mkdir -p $(DESTDIR)$(docdir)/
|
|
$(INSTALL_DATA) $(USERMAP) $(DESTDIR)$(docdir)/
|
|
|
|
uninstall-local:
|
|
rm -f $(DESTDIR)$(docdir)/$(USERMAP)
|
|
|
|
else
|
|
|
|
install-data-local:
|
|
@echo "Dummy $@ target"
|
|
|
|
uninstall-local:
|
|
@echo "Dummy $@ target"
|
|
|
|
endif
|