forked from michaelrsweet/htmldoc
-
Notifications
You must be signed in to change notification settings - Fork 1
/
Makefile.in
87 lines (66 loc) · 1.48 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
#
# Makefile for HTMLDOC, an HTML document processing program.
#
# Copyright 2011-2017 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 = @JPEG@ @ZLIB@ @PNG@ 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...
#
IDENTITY = "Developer ID Application"
VERSION = @SVERSION@
dmg:
echo Signing HTMLDOC application bundle
codesign -s $(IDENTITY) htmldoc/htmldoc.app
echo Making disk image...
rm -f ~/Desktop/htmldoc-$(VERSION)-macos.dmg
hdiutil create -srcfolder htmldoc/htmldoc.app ~/Desktop/htmldoc-$(VERSION)-macos.dmg