Subversion Repositories SvarDOS

Rev

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

Rev 979 Rev 1191
Line 1... Line 1...
1
#
1
#
2
# localcfg Makefile for OpenWatcom
2
# localcfg Makefile for OpenWatcom
3
#
3
#
4
 
4
 
-
 
5
SVARLANGVER=20220314
-
 
6
 
5
all: localcfg.com
7
all: localcfg.com
6
 
8
 
7
localcfg.com: localcfg.c country.c deflang.c
9
localcfg.com: localcfg.c country.c deflang.c
8
	wcl -0 -y -cc -wx -mt -lr -zp1 -we -d0 -ox localcfg.c country.c deflang.c svarlang.lib/svarlngs.lib
10
	*wcl -0 -y -cc -wx -mt -lr -zp1 -we -d0 -ox -I=svarlang.lib\tags\$SVARLANGVER localcfg.c country.c deflang.c svarlang.lib/tags/$SVARLANGVER/svarlngs.lib
9
	del *.obj
11
	del *.obj
10
	upx --8086 -9 localcfg.com
12
	upx --8086 -9 localcfg.com
11
 
13
 
12
deflang.c: nls_lang\*.txt
14
deflang.c: nls_lang\*.txt
13
	cd nls_lang
15
	cd nls_lang
-
 
16
	utf8tocp 850 br_utf8.txt > br.txt
14
	utf8tocp 850 de_utf8.txt > de.txt
17
	utf8tocp 850 de_utf8.txt > de.txt
15
	utf8tocp maz pl_utf8.txt > pl.txt
18
	utf8tocp maz pl_utf8.txt > pl.txt
16
	..\svarlang.lib\tlumacz en de pl
19
	..\svarlang.lib\tags\$SVARLANGVER\tlumacz en br de pl > tlumacz.log
17
	move out.lng ..\localcfg.lng
20
	move out.lng ..\localcfg.lng
18
	move deflang.c ..\
21
	move deflang.c ..\
19
	cd ..
22
	cd ..
20
 
23
 
21
clean: .SYMBOLIC
24
clean: .SYMBOLIC
22
	del *.obj
25
	del *.obj
23
	del *.com
26
	del *.com
24
	del deflang.c
27
	del deflang.c
25
	del localcfg.lng
28
	del localcfg.lng
26
 
29
 
27
buildpkg: localcfg.com .SYMBOLIC
30
release: localcfg.com .SYMBOLIC
28
	mkdir appinfo
31
	mkdir appinfo
29
	mkdir source
-
 
30
	mkdir source\localcfg
-
 
31
	mkdir source\localcfg\nls_lang
-
 
32
	mkdir source\localcfg\svarlang.lib
-
 
33
	mkdir bin
32
	mkdir bin
34
	mkdir doc
33
	mkdir doc
35
	mkdir doc\localcfg
34
	mkdir doc\localcfg
36
	mkdir nls
35
	mkdir nls
37
	copy localcfg.lsm appinfo
36
	copy localcfg.lsm appinfo
38
	copy localcfg.com bin
37
	copy localcfg.com bin
39
	copy localcfg.lng nls
38
	copy localcfg.lng nls
40
	copy svarlang.lib\*.* source\localcfg\svarlang.lib
-
 
41
	del source\localcfg\svarlang.lib\*.lib
-
 
42
	del source\localcfg\svarlang.lib\*.exe
-
 
43
	copy *.txt doc\localcfg
39
	copy *.txt doc\localcfg
44
	copy *.c source\localcfg
-
 
45
	copy *.h source\localcfg
-
 
46
	copy *.txt source\localcfg
-
 
47
	copy makefile source\localcfg
-
 
48
	copy nls_lang\*.* source\localcfg\nls_lang
-
 
49
	if exist localcfg.zip del localcfg.zip
40
	if exist localcfg.zip del localcfg.zip
50
	zip -9rkDX -m localcfg.zip appinfo bin doc nls source
41
	zip -9rkDX -m localcfg.svp appinfo bin doc nls
-
 
42
	zip -9rkDX localcfg.zip *.txt *.c *.h makefile svarlang.lib\tags\$SVARLANGVER nls_lang
51
	rmdir appinfo
43
	rmdir appinfo
52
	rmdir source\localcfg\svarlang.lib
-
 
53
	rmdir source\localcfg\nls_lang
-
 
54
	rmdir source\localcfg
-
 
55
	rmdir source
-
 
56
	rmdir bin
44
	rmdir bin
57
	rmdir doc\localcfg
45
	rmdir doc\localcfg
58
	rmdir doc
46
	rmdir doc
59
	rmdir nls
47
	rmdir nls