-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathMakefile.am
29 lines (24 loc) · 989 Bytes
/
Makefile.am
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
EXTRA_DIST = Makefile.mingw \
config.h.mingw \
cleanup.sh \
mm3d-win32-installer.nsi \
TRANSLATORS \
INSTALL.WIN32 \
install.bat \
mm3d.reg
SUBDIRS = src plugins i18n doc desktop man
DESTDIR = src
MAC_APP = $(PACKAGE).app
$(MAC_APP): $(MAC_APP)/Contents/PkgInfo $(MAC_APP)/Contents/Info.plist
@cp $(DESTDIR)/$(PACKAGE) $(MAC_APP)/Contents/MacOS/$(PACKAGE)
$(MAC_APP)/Contents/PkgInfo:
@test -d $(MAC_APP)/Contents/MacOS/ || mkdir -p $(MAC_APP)/Contents/MacOS/
@rm -f $(MAC_APP)/Contents/PkgInfo
@echo "APPL????" > $(MAC_APP)/Contents/PkgInfo
$(MAC_APP)/Contents/Info.plist:
@test -d $(MAC_APP)/Contents/MacOS/ || mkdir -p $(MAC_APP)/Contents/MacOS/
@rm -f $(MAC_APP)/Contents/Info.plist
@echo "" > $(MAC_APP)/Contents/Info.plist
@defaults write $(PWD)/$(MAC_APP)/Contents/Info '{"CFBundlePackageType"=APPL;}';
@defaults write $(PWD)/$(MAC_APP)/Contents/Info "CFBundleSignature" "????"
@defaults write $(PWD)/$(MAC_APP)/Contents/Info "CFBundleExecutable" $(PACKAGE)