Subversion Repositories Krakow BASIC

Rev

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

Rev 18 Rev 29
Line 1... Line 1...
1
# $Id: Makefile 18 2024-09-04 15:51:38Z nishi $
1
# $Id: Makefile 29 2024-09-05 04:27:28Z nishi $
2
 
2
 
3
PLATFORM = generic
3
PLATFORM = generic
4
PWD = `pwd`
4
PWD = `pwd`
5
FLAGS = PLATFORM=$(PLATFORM) PWD=$(PWD)
5
FLAGS = PLATFORM=$(PLATFORM) PWD=$(PWD)
6
 
6
 
7
.PHONY: all format clean get-version
7
.PHONY: all clean get-version
8
 
8
 
9
all: ./BASIC
9
all: ./BASIC
10
 
10
 
11
./BASIC::
11
./BASIC::
12
	$(MAKE) -C $@ $(FLAGS)
12
	$(MAKE) -C $@ $(FLAGS)
13
 
13
 
14
format:
-
 
15
	clang-format --verbose -i BASIC/basic.c
-
 
16
 
-
 
17
get-version:
14
get-version:
18
	@grep "#define VERSION" BASIC/basic.c | sed -E 's/^#define VERSION "|"$$//g'
15
	@grep "#define VERSION" BASIC/basic.c | sed -E 's/^#define VERSION "|"$$//g'
19
 
16
 
20
clean:
17
clean:
21
	$(MAKE) -C ./BASIC $(FLAGS) clean
18
	$(MAKE) -C ./BASIC $(FLAGS) clean