-
Notifications
You must be signed in to change notification settings - Fork 2
/
release.gmk
74 lines (71 loc) · 2.5 KB
/
release.gmk
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
74
##-*- makefile -*-############################################################
#
# Created By : Detlef Groth
# Created : Sat Aug 24 05:46:12 2024
# Last Modified : <241228.0738>
#
# Description : This Makefile should be called from other Makefiles
# with the app and RELEASE variables given
# Notes
#
# History
#
# $Log$
#
##############################################################################
#
# Copyright (c) 2024 Detlef Groth.
#
# GPL-License as MicroEmacs
#
##############################################################################
RELEASE=""
app=""
ext="bin"
bfs="bfs"
me=$(app).bin
meout=$(app)
mesh="mecu"
meshout="mecu"
ifeq ($(ext),exe)
bfs="bfs.exe"
me=$(app).exe
meout=$(app).exe
mesh="me-msys2.sh"
meshout="me.sh"
endif
appx=`echo $(app) | sed -E 's/b//'`
default:
-rm -rf $(RELEASE)/$(RELEASE)-$(app)
mkdir -p $(RELEASE)/$(RELEASE)-$(app)/bin
mkdir -p $(RELEASE)/$(RELEASE)-$(app)/man
mkdir -p $(RELEASE)/$(RELEASE)-$(app)/share/microemacs/
cp $(RELEASE)-$(me) $(RELEASE)/$(RELEASE)-$(app)/bin/$(meout)
cp bfs/$(bfs) $(RELEASE)/$(RELEASE)-$(app)/bin/
cp bin/$(mesh) $(RELEASE)/$(RELEASE)-$(app)/bin/$(meshout)
chmod 755 $(RELEASE)/$(RELEASE)-$(app)/bin/$(meshout)
cp bfs/bfs-readme.md $(RELEASE)/$(RELEASE)-$(app)/share/microemacs/
cp license.txt COPYING README-standalone.md $(RELEASE)/$(RELEASE)-$(app)/share/microemacs/
cp doc/me.1 $(RELEASE)/$(RELEASE)-$(app)/man/
cd $(RELEASE) && zip -r $(RELEASE)-$(app).zip $(RELEASE)-$(app)/*
cd $(RELEASE) && rm -rf $(RELEASE)-$(app)
macos-12:
cp -r jasspa jasspa-temp
rm -rf jasspa-temp/*/*~
mkdir -p macos-12-microemacs-091224
mkdir -p macos-12-microemacs-091224-$(app)/bin
mkdir -p macos-12-microemacs-091224-$(app)/share/microemacs
mkdir -p macos-12-microemacs-091224-$(app)/man
cp doc/me.1 macos-12-microemacs-091224-$(app)/man/
cp macos-12-091224/bfs macos-12-microemacs-091224-$(app)/bin/
cp bfs/bfs-readme.md macos-12-microemacs-091224-$(app)/share/microemacs/
cp bin/mecu macos-12-microemacs-091224-$(app)/bin/
chmod 755 bin/mecu macos-12-microemacs-091224-$(app)/bin/mecu
cp license.txt COPYING README-standalone.md macos-12-microemacs-091224-$(app)/share/microemacs/
./bfs/bfs -a macos-12-091224/$(appx) -o macos-12-microemacs-091224-$(app)/bin/$(app) ./jasspa-temp
zip -r macos-12-microemacs-091224-$(app).zip macos-12-microemacs-091224-$(app)/*
cp macos-12-microemacs-091224-$(app).zip macos-12-microemacs-091224/
rm -rf jasspa-temp
rm -rf macos-12-microemacs-091224-$(app)
test2:
echo $(appx)