Subversion Repositories Mokou

Rev

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

Rev Author Line No. Line
2 nishi 1
# $Id: Makefile 15 2024-09-07 13:23:03Z nishi $
2
 
3
PREFIX = /usr/local
4
PLATFORM = generic
5
PWD = `pwd`
6
FLAGS = PLATFORM=$(PLATFORM) PWD=$(PWD) PREFIX=$(PREFIX)
7
 
8
.PHONY: all clean ./Mokou ./Control
9
 
15 nishi 10
all: ./Mokou ./Control ./Manpage/mokouctl.8
2 nishi 11
 
12
./Mokou::
13
	$(MAKE) -C $@ $(FLAGS)
14
 
15
./Control::
16
	$(MAKE) -C $@ $(FLAGS)
17
 
15 nishi 18
./Manpage/mokouctl.8: ./Manpage/mokouctl.8.tmp
19
	sed "s%@PREFIX@%$(PREFIX)%g" ./Manpage/mokouctl.8.tmp > $@
20
 
2 nishi 21
clean:
22
	$(MAKE) -C ./Mokou $(FLAGS) clean
23
	$(MAKE) -C ./Control $(FLAGS) clean
15 nishi 24
	rm -f ./Manpage/mokouctl.8