-
Notifications
You must be signed in to change notification settings - Fork 5
/
Copy pathMakefile
48 lines (33 loc) · 787 Bytes
/
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
BIN=archsat
MAIN=src/main.native
all: test-bin
doc:
cd doc && $(MAKE)
bin:
$(MAKE) -C src bin
cp $(MAIN) $(BIN)
lib:
$(MAKE) -C src lib
static:
cd static && $(MAKE)
test: test-lib test-bin
test-lib:
@echo "RUN API tests"
$(MAKE) -C src test
test-bin: bin static
@echo "run BIN tests…"
@cd tests && $(MAKE) --no-print-directory
$(MAKE) test-clean
test-clean:
@cd tests && $(MAKE) --no-print-directory clean
install: bin
./$(BIN) --help=groff > $(MANDIR)/man1/$(BIN).1
cp $(BIN) $(BINDIR)/
uninstall:
rm -f $(MANDIR)/man1/$(BIN).1 $(BINDIR)/$(BIN)
clean:
cd src && $(MAKE) clean
cd tests && $(MAKE) clean
cd static && $(MAKE) clean
rm -f $(BIN) perf.* *.v* *tmp* *.gv *.glob *.dk
.PHONY: doc bin lib static test test-lib test-bin install uninstall clean