-
-
Notifications
You must be signed in to change notification settings - Fork 47
/
Makefile.in
98 lines (77 loc) · 1.92 KB
/
Makefile.in
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
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
#
# Makefile for HTMLDOC, an HTML document processing program.
#
# Copyright © 2011-2021 by Michael R Sweet.
# Copyright © 1997-2010 by Easy Software Products.
#
# This program is free software. Distribution and use rights are outlined in
# the file "COPYING".
#
#
# Include common definitions...
#
include Makedefs
#
# Subdirectories...
#
DIRS = htmldoc doc
INSTALLDIRS = fonts data desktop doc htmldoc
#
# Make all targets...
#
all:
for dir in $(DIRS); do\
echo Making all in $$dir...;\
(cd $$dir; $(MAKE) -$(MAKEFLAGS)) || exit 1;\
done
#
# Remove object and target files...
#
clean:
for dir in $(DIRS); do\
echo Cleaning in $$dir...;\
(cd $$dir; $(MAKE) -$(MAKEFLAGS) clean) || exit 1;\
done
#
# Clean everything
#
distclean: clean
$(RM) -r autom4te*.cache
$(RM) config.h
$(RM) config.log
$(RM) config.status
$(RM) desktop/htmldoc.dt
$(RM) desktop/htmldoc.plist
$(RM) Makedefs
$(RM) Makefile
#
# Install object and target files...
#
install:
$(MAKE) all
for dir in $(INSTALLDIRS); do\
echo Installing in $$dir...;\
(cd $$dir; $(MAKE) -$(MAKEFLAGS) install) || exit 1;\
done
#
# Sign the HTMLDOC application bundle and make a disk image... Set the
# CODESIGN_IDENTITY, APPLEID, and TEAMID environment variables from the Apple
# developer pages.
#
VERSION = @SVERSION@
dmg:
echo Signing HTMLDOC application bundle
codesign -f -s "$(CODESIGN_IDENTITY)" --timestamp -o runtime htmldoc/htmldoc.app
echo Creating archive for notarization
rm -f htmldoc/htmldoc.zip
ditto -c -k --keepParent htmldoc/htmldoc.app htmldoc/htmldoc.zip
echo Notarizing application
xcrun notarytool submit htmldoc/htmldoc.zip \
--apple-id "$${APPLEID}" \
--keychain-profile "AC_$${TEAMID}" \
--team-id "$${TEAMID}" \
--wait
xcrun stapler staple htmldoc/htmldoc.app
echo Making disk image
rm -f ~/Desktop/htmldoc-$(VERSION)-macos.dmg
dmgbuild -s dmgbuild.py "HTMLDOC $(VERSION)" ~/Desktop/htmldoc-$(VERSION)-macos.dmg