Subversion Repositories SvarDOS

Rev

Details | Last modification | View Log | RSS feed

Rev Author Line No. Line
585 mateuszvis 1
#
587 mateuszvis 2
# localcfg Makefile for OpenWatcom
585 mateuszvis 3
#
4
 
5
all: localcfg.com
6
 
603 mateuszvis 7
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
605 mateuszvis 9
	del *.obj
585 mateuszvis 10
	upx --8086 -9 localcfg.com
11
 
603 mateuszvis 12
deflang.c: nls_lang\*.txt
13
	cd nls_lang
979 bttr 14
	utf8tocp 850 de_utf8.txt > de.txt
603 mateuszvis 15
	utf8tocp maz pl_utf8.txt > pl.txt
979 bttr 16
	..\svarlang.lib\tlumacz en de pl
603 mateuszvis 17
	move out.lng ..\localcfg.lng
18
	move deflang.c ..\
19
	cd ..
20
 
587 mateuszvis 21
clean: .SYMBOLIC
585 mateuszvis 22
	del *.obj
23
	del *.com
605 mateuszvis 24
	del deflang.c
25
	del localcfg.lng
585 mateuszvis 26
 
609 mateuszvis 27
buildpkg: localcfg.com .SYMBOLIC
585 mateuszvis 28
	mkdir appinfo
29
	mkdir source
30
	mkdir source\localcfg
603 mateuszvis 31
	mkdir source\localcfg\nls_lang
605 mateuszvis 32
	mkdir source\localcfg\svarlang.lib
587 mateuszvis 33
	mkdir bin
34
	mkdir doc
605 mateuszvis 35
	mkdir doc\localcfg
603 mateuszvis 36
	mkdir nls
585 mateuszvis 37
	copy localcfg.lsm appinfo
587 mateuszvis 38
	copy localcfg.com bin
603 mateuszvis 39
	copy localcfg.lng nls
605 mateuszvis 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
585 mateuszvis 44
	copy *.c source\localcfg
45
	copy *.h source\localcfg
46
	copy *.txt source\localcfg
587 mateuszvis 47
	copy makefile source\localcfg
603 mateuszvis 48
	copy nls_lang\*.* source\localcfg\nls_lang
612 mateuszvis 49
	if exist localcfg.zip del localcfg.zip
603 mateuszvis 50
	zip -9rkDX -m localcfg.zip appinfo bin doc nls source
587 mateuszvis 51
	rmdir appinfo
605 mateuszvis 52
	rmdir source\localcfg\svarlang.lib
53
	rmdir source\localcfg\nls_lang
587 mateuszvis 54
	rmdir source\localcfg
55
	rmdir source
56
	rmdir bin
609 mateuszvis 57
	rmdir doc\localcfg
587 mateuszvis 58
	rmdir doc
603 mateuszvis 59
	rmdir nls