forked from boiarino17/epics
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Makefile
59 lines (44 loc) · 1.27 KB
/
Makefile
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
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
.PHONY: all install clean distclean rebuild \
tools clean-tools install-tools uninstall-tools \
test test-all test-env \
hps tar todo
## HPS - build epics apps and tools
hps: all tools svtdaqlib # Build all EPICS Apps and Tools
## EPICS Only (apps/)
all: test-env
(cd drivers; make all)
(cd apps; make all)
install:
(cd drivers; make install)
(cd apps; make install)
clean:
(cd drivers; make clean)
(cd apps; make clean)
distclean:
(cd drivers; make distclean)
(cd apps; make distclean)
rebuild: clean install
## Tools Only (tools/)
tools:
(cd tools; make all)
clean-tools:
(cd tools; make clean)
install-tools:
(cd tools; make install)
uninstall-tools:
(cd tools; make uninstall)
## Test Builds
test: test-all
test-all: ## Check env and run all targets, except installs
@./utils/testbuild.sh
test-env: ## Check env variables only
@./utils/testbuild.sh -e
## misc
# TODO (wmoore): fix hard-coded path for making tar file).
tar: distclean
@cd ../ && tar czf hps-epics-`date +%Y.%m.%d`.tgz epics
todo:
@find drivers -type f -exec egrep -HIn TODO \{\} \; 2> /dev/null
@find drivers -type f -exec egrep -HIn FIXME \{\} \; 2> /dev/null
@find apps -type f -exec egrep -HIn TODO \{\} \; 2> /dev/null
@find apps -type f -exec egrep -HIn FIXME \{\} \; 2> /dev/null