summaryrefslogtreecommitdiff
path: root/packaging
diff options
context:
space:
mode:
authorHans Ulrich Niedermann <gp@n-dimensional.de>2002-08-24 00:44:06 +0000
committerHans Ulrich Niedermann <gp@n-dimensional.de>2002-08-24 00:44:06 +0000
commit4ee5075150f0732dbb306fa79c636bf600bd4bdd (patch)
tree787516be5e7f70c5aea17ca98515513f3d1a4906 /packaging
parente3666833755fe9b9d607a6dc3192075250960a4f (diff)
downloadlibgphoto2-4ee5075150f0732dbb306fa79c636bf600bd4bdd.tar.gz
create and install a file gphoto2-usb.usermap in doc dir
git-svn-id: https://svn.code.sf.net/p/gphoto/code/trunk/libgphoto2@5122 67ed7778-7388-44ab-90cf-0a291f65f57c
Diffstat (limited to 'packaging')
-rw-r--r--packaging/linux-hotplug/.cvsignore1
-rw-r--r--packaging/linux-hotplug/Makefile.am17
2 files changed, 18 insertions, 0 deletions
diff --git a/packaging/linux-hotplug/.cvsignore b/packaging/linux-hotplug/.cvsignore
index 026b84d8a..ac63ce95b 100644
--- a/packaging/linux-hotplug/.cvsignore
+++ b/packaging/linux-hotplug/.cvsignore
@@ -3,3 +3,4 @@ Makefile Makefile.in
.deps
.libs
print-usb-usermap
+*.usermap
diff --git a/packaging/linux-hotplug/Makefile.am b/packaging/linux-hotplug/Makefile.am
index 605deaeff..8561f4d46 100644
--- a/packaging/linux-hotplug/Makefile.am
+++ b/packaging/linux-hotplug/Makefile.am
@@ -16,4 +16,21 @@ noinst_PROGRAMS = print-usb-usermap
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)
+ $(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