summaryrefslogtreecommitdiffstats
path: root/Makefile.am
blob: 5b29aa77100449cd831e1c04db06e4452bd8d595 (plain) (blame)
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
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
# process this file with automake to create a Makefile.in

SUBDIRS = src tools doc debian

aclocaldir = @datadir@/aclocal
aclocal_DATA = libraw1394.m4

EXTRA_DIST = libraw1394.m4

doc: psdoc pdfdoc htmldoc

psdoc:
	$(MAKE) -C doc psdoc

pdfdoc:
	$(MAKE) -C doc pdfdoc

htmldoc:
	$(MAKE) -C doc htmldoc

.PHONY: doc psdoc pdfdoc htmldoc

# 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 device file not found."; \
		echo "Run 'make dev' to create it.";                 \
		echo "********************************************"; \
		echo;                                                \
	fi