Subversion Repositories MLServ

Rev

Rev 2 | Details | Compare with Previous | Last modification | View Log | RSS feed

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