Subversion Repositories MLServ

Rev

Rev 2 | Show entire file | Ignore whitespace | Details | Blame | Last modification | View Log | RSS feed

Rev 2 Rev 3
Line 1... Line 1...
1
# $Id: Makefile 2 2024-09-07 02:00:41Z nishi $
1
# $Id: Makefile 3 2024-09-24 15:50:24Z nishi $
2
 
2
 
3
PWD = `pwd`
3
PWD = `pwd`
4
PLATFORM = generic
4
PLATFORM = generic
5
PREFIX = /usr/local
5
PREFIX = /usr/local
6
 
6
 
7
FLAGS = PWD=$(PWD) PLATFORM=$(PLATFORM) PREFIX=$(PREFIX)
7
FLAGS = PWD=$(PWD) PLATFORM=$(PLATFORM) PREFIX=$(PREFIX)
8
 
8
 
9
.PHONY: all clean ./Service ./Tool
9
.PHONY: all foramt clean ./Service ./Tool
10
 
10
 
11
all: ./Service ./Tool
11
all: ./Service ./Tool
12
 
12
 
13
./Service:: ./Common
13
./Service:: ./Common
14
	$(MAKE) -C $@ $(FLAGS)
14
	$(MAKE) -C $@ $(FLAGS)
Line 21... Line 21...
21
 
21
 
22
install:
22
install:
23
	$(MAKE) -C ./Service install $(FLAGS)
23
	$(MAKE) -C ./Service install $(FLAGS)
24
	$(MAKE) -C ./Tool install $(FLAGS)
24
	$(MAKE) -C ./Tool install $(FLAGS)
25
	$(MAKE) -C ./Common install $(FLAGS)
25
	$(MAKE) -C ./Common install $(FLAGS)
-
 
26
	mkdir -p $(PREFIX)/etc/
-
 
27
	touch $(PREFIX)/etc/mlserv.aliases
-
 
28
 
-
 
29
format:
-
 
30
	clang-format --verbose -i `find . -name "*.c" -or -name "*.h"`
26
 
31
 
27
clean:
32
clean:
28
	$(MAKE) -C ./Service clean $(FLAGS)
33
	$(MAKE) -C ./Service clean $(FLAGS)
29
	$(MAKE) -C ./Tool clean $(FLAGS)
34
	$(MAKE) -C ./Tool clean $(FLAGS)
30
	$(MAKE) -C ./Common clean $(FLAGS)
35
	$(MAKE) -C ./Common clean $(FLAGS)