summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorGravatar abombe 2000-01-02 21:55:08 +0000
committerGravatar abombe 2000-01-02 21:55:08 +0000
commit7ba9a4696900f930061c50785c80f77bd8522842 (patch)
treedd7340bae54a34e302e3ed65fe69235d8ea6e2b9
parentAdded isochronous I/O support (diff)
Added dev target to Makefile
git-svn-id: svn://svn.linux1394.org/libraw1394/trunk@5 53a565d1-3bb7-0310-b661-cf11e63c67ab
-rw-r--r--Makefile.am24
1 files changed, 24 insertions, 0 deletions
diff --git a/Makefile.am b/Makefile.am
index f4d9da2..46238c9 100644
--- a/Makefile.am
+++ b/Makefile.am
@@ -3,3 +3,27 @@
SUBDIRS = src
EXTRA_DIST = debian/*
+
+
+# make required device file
+dev:
+ mknod -m 600 /dev/raw1394 c 171 0
+ chown root.root /dev/raw1394
+ @echo
+ @echo "/dev/raw1394 created"
+ @echo "It is owned by root with permissions 600. You may want to fix"
+ @echo "the group/permission to something appropriate for you."
+ @echo "Note however that anyone who can open raw1394 can access all"
+ @echo "devices on all connected 1394 buses unrestricted, including"
+ @echo "harddisks and other probably sensitive devices."
+ @echo
+
+install-exec-hook:
+ @if [ ! -c /dev/raw1394 ]; then \
+ echo; \
+ echo "***********************************************"; \
+ echo "Required /dev/raw1394 special device not found."; \
+ echo "Run 'make dev' to create it."; \
+ echo "***********************************************"; \
+ echo; \
+ fi