-
Notifications
You must be signed in to change notification settings - Fork 5
/
Makefile.in
49 lines (38 loc) · 960 Bytes
/
Makefile.in
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
#
# Copyright (c) 2008 Martin Decky
# All rights reserved.
#
# Distributed under the terms of GPL.
#
INSTALL = @INSTALL@
RM = @RM@
prefix = @prefix@
exec_prefix = @exec_prefix@
bindir = @bindir@
BINARY = msim
.PHONY: all install uninstall clean distclean rvtest cstyle
all:
$(MAKE) -C src
install: all
$(INSTALL) -d $(DESTDIR)$(bindir)
$(INSTALL) -s -m 755 $(BINARY) $(DESTDIR)$(bindir)/$(BINARY)
uninstall:
$(RM) -f $(DESTDIR)$(bindir)/$(BINARY)
clean:
$(MAKE) -C src clean
$(MAKE) -C tests/rvtests/unit-tests clean
distclean: clean
$(MAKE) -C src distclean
$(MAKE) -C tests/rvtests/unit-tests distclean
$(RM) -f Makefile config.log config.status config.h stamp-h
test:
make -C . rvtest
bats tests/system/
rvtest:
@echo "\nUnit tests:"
$(MAKE) -C src rvtest
@echo "\nSystem tests:"
cd tests/rvtests ; python3 run_tests.py
@echo "\n All Tests Passed!"
cstyle:
find src/ tests/ -name '*.[ch]' -exec clang-format -style=file -i {} \;