-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathMakefile
More file actions
73 lines (56 loc) · 1.49 KB
/
Copy pathMakefile
File metadata and controls
73 lines (56 loc) · 1.49 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
FORMS=$(patsubst %.per,%.42f,$(wildcard *.per))
PROGMOD=fgldeb.42m
ifndef FGLDIR
$(error FGLDIR must be set)
endif
ifneq (,$(shell which fgldb))
FGLCOMPDEFINES=-D HAVE_FGLDB
endif
all: $(PROGMOD) $(FORMS)
%.42f: %.per
fglform -M $<
%.42m: %.4gl
fglcomp -M $(FGLCOMPDEFINES) $<
demo:: all
make -C demo deb
attachdemo:: all
make -C demo attach
cpassets:: all
rm -rf dist
mkdir dist
mkdir dist/fgldeb
mkdir dist/fgldeb/demo
cp fgldeb fgldeb.bat fgldeb.42m *.42f fgldeb.msg fgldeb.4ad fgldeb.4st fgldeb.4tb dist/fgldeb
cp -a icons/ dist/fgldeb/icons/
make -C demo
cp demo/debugsimple.42m demo/simple*.4gl demo/simple*.42m dist/fgldeb/demo
tgz:: cpassets
rm -f fgldeb.tgz
cd dist&&tar cvfz ../fgldeb.tgz fgldeb/
zip:: cpassets
rm -f fgldeb.zip
cd dist&&zip -r ../fgldeb.zip fgldeb/
testtgz:: tgz
rm -rf testdist
mkdir testdist
cd testdist&&tar xvzf ../fgldeb.tgz&&cd fgldeb/demo&&fglrun debugsimple
testzip:: zip
rm -rf testdist
mkdir testdist
cd testdist&&unzip ../fgldeb.zip&&cd fgldeb/demo&&fglrun debugsimple
define scriptify
fglscriptify $(1) icons/*.png *.per fgldeb.msg fgldeb.4ad fgldeb.4st fgldeb.4tb fgldeb.4gl
endef
#if you have installed fglscriptify from https://github.com/leopatras/fglscriptify.git
scriptify::
rm -f script/fgldeb script/fgldeb.bat
$(call scriptify,-o script/fgldeb)
$(call scriptify,-o script/fgldeb.bat)
clean_prog::
rm -f *.42?
clean:: clean_prog
rm -f *.tgz *.zip *.fgldeb
rm -rf dist testdist
make -C demo clean
echo:
echo "FGLDIR=$(FGLDIR)"