Subversion Repositories Tewi

Rev

Rev 315 | Rev 365 | Go to most recent revision | Show entire file | Ignore whitespace | Details | Blame | Last modification | View Log | RSS feed

Rev 315 Rev 358
Line 1... Line 1...
1
# $Id: Makefile 315 2024-10-14 10:01:02Z nishi $
1
# $Id: Makefile 358 2024-10-16 10:49:46Z nishi $
2
 
2
 
3
PWD = `pwd`
3
PWD = `pwd`
4
PLATFORM = generic
4
PLATFORM = generic
5
PLATFORM_IDENT = NOT_WINDOWS
5
PLATFORM_IDENT = NOT_WINDOWS
6
PREFIX = /usr/local
6
PREFIX = /usr/local
Line 9... Line 9...
9
 
9
 
10
include Platform/$(PLATFORM).mk
10
include Platform/$(PLATFORM).mk
11
 
11
 
12
FLAGS = PWD=$(PWD) PLATFORM=$(PLATFORM) PREFIX=$(PREFIX)
12
FLAGS = PWD=$(PWD) PLATFORM=$(PLATFORM) PREFIX=$(PREFIX)
13
 
13
 
14
.PHONY: all format clean ./Server ./Common ./Module get-version
14
.PHONY: all format clean ./Server ./Common ./Module get-version src-archive
15
 
15
 
16
all: ./Server $(MODULE)
16
all: ./Server $(MODULE)
17
 
17
 
-
 
18
src-archive: clean
-
 
19
	@svn cleanup --remove-unversioned
-
 
20
	cp -rf . /tmp/tewi-`grep "define TW_VERSION" Server/tw_version.h | grep -Eom 1 '"[^\]+' | sed 's/^"//g'`
-
 
21
	cd /tmp && tar --exclude .github -czvf tewi-`grep "define TW_VERSION" tewi-*/Server/tw_version.h | grep -Eom 1 '"[^\]+' | sed 's/^"//g'`.tar.gz tewi-`grep "define TW_VERSION" tewi-*/Server/tw_version.h | grep -Eom 1 '"[^\]+' | sed 's/^"//g'`
-
 
22
	mv /tmp/tewi-`grep "define TW_VERSION" Server/tw_version.h | grep -Eom 1 '"[^\]+' | sed 's/^"//g'`.tar.gz ./
-
 
23
 
18
./Tool/option: ./Tool/option.c config.h
24
./Tool/option: ./Tool/option.c config.h
19
	cc -o $@ ./Tool/option.c
25
	cc -o $@ ./Tool/option.c
20
 
26
 
21
./Tool/genconf: ./Tool/genconf.c config.h
27
./Tool/genconf: ./Tool/genconf.c config.h
22
	cc -o $@ ./Tool/genconf.c
28
	cc -o $@ ./Tool/genconf.c