aboutsummaryrefslogtreecommitdiff
path: root/Makefile
blob: 341c55bc2cbeb48b2042466e1ff5ec68570d28b2 (plain)
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
TARGET := $(shell pwd | sed 's|.*/\(.*\)$$|\1|')
EXTERNALS_ROOT := $(shell pwd | sed 's|^\(/.*externals\).*|\1|')

default: 
	make -C $(EXTERNALS_ROOT) $(TARGET)

install:
	make -C $(EXTERNALS_ROOT) $(TARGET)_install

clean:
	make -C $(EXTERNALS_ROOT) $(TARGET)_clean

test_locations:
	make -C $(EXTERNALS_ROOT) test_locations

# for emacs
etags:
	make etags_`uname -s`

etags_Darwin:
	etags *.[ch] linux/input.h HID\ Utilities\ Source/*.[ch] \
		/System/Library/Frameworks/IOKit.framework/Headers/hid*/*.[ch]

etags_Linux:
	etags *.[ch] /usr/include/*.h linux/input.h /usr/include/sys/*.h