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
|
#
# Makefile for HTMLDOC, an HTML document processing program.
#
# Copyright 2011-2019 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... Set the
# APPLEID and TEAMID environment variables from the Apple developer pages.
#
IDENTITY = "Developer ID Application"
VERSION = @SVERSION@
dmg:
echo Signing HTMLDOC application bundle
codesign -s $(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 altool --notarize-app -f htmldoc/htmldoc.zip \
--primary-bundle-id org.msweet.htmldoc \
--username "$(APPLEID)" \
--password "@keychain:AC_$(TEAMID)" \
--asc-provider "$(TEAMID)"
echo Making disk image
rm -f ~/Desktop/htmldoc-$(VERSION)-macos.dmg
dmgbuild -s dmgbuild.py "HTMLDOC $(VERSION)" ~/Desktop/htmldoc-$(VERSION)-macos.dmg
|