aboutsummaryrefslogtreecommitdiff
path: root/Makefile
blob: 98be310faa51f430514d02f936b22a8a074f4388 (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
26
27
28
29
30
31
32
33
34
35
36
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:
	etags ../../../pd/src/*.h *.[ch] linux/input.h /usr/include/stdlib.h \
		/usr/include/time.h /usr/include/stdio.h
	make etags_`uname -s`

etags_Darwin:
	etags -a HID\ Utilities\ Source/*.[ch] \
		/System/Library/Frameworks/ForceFeedback.framework/Headers/*.h \
		/System/Library/Frameworks/Carbon.framework/Headers/*.h  \
		/System/Library/Frameworks/CoreServices.framework/Headers/*.h  \
		/System/Library/Frameworks/IOKit.framework/Headers/*.[ch] \
		/System/Library/Frameworks/IOKit.framework/Headers/hid*/*.[ch] \
		/usr/include/mach/*.h

etags_Linux:
	etags -a /usr/include/*.h linux/input.h /usr/include/sys/*.h

etags_MINGW:
	etags -a /usr/include/*.h /usr/include/sys/*.h \
		/usr/local/include/*.h /usr/local/include/sys/*.h