VeraCrypt
aboutsummaryrefslogtreecommitdiff
path: root/src/Main/Main.make
diff options
context:
space:
mode:
authorMounir IDRASSI <mounir.idrassi@idrix.fr>2017-06-13 16:40:05 +0200
committerMounir IDRASSI <mounir.idrassi@idrix.fr>2017-06-13 18:21:13 +0200
commit5d0321291f4df297b0d9f9837099a36cdf1c83b6 (patch)
treed90894454931f927bcc13382d3d47db9856c1d4b /src/Main/Main.make
parenteb4f5ac4e7fedae6061a9615d41dd6c2c8779c92 (diff)
downloadVeraCrypt-5d0321291f4df297b0d9f9837099a36cdf1c83b6.tar.gz
VeraCrypt-5d0321291f4df297b0d9f9837099a36cdf1c83b6.zip
Linux/MacOSX: Modify Makefile to separate between build and packaging. Add install target for local installation.
Diffstat (limited to 'src/Main/Main.make')
-rwxr-xr-xsrc/Main/Main.make31
1 files changed, 30 insertions, 1 deletions
diff --git a/src/Main/Main.make b/src/Main/Main.make
index 7041d66e..b7c107a5 100755
--- a/src/Main/Main.make
+++ b/src/Main/Main.make
@@ -152,6 +152,7 @@ endif
endif
ifeq "$(PLATFORM)" "MacOSX"
+prepare: $(APPNAME)
mkdir -p $(APPNAME).app/Contents/MacOS $(APPNAME).app/Contents/Resources/doc/HTML
-rm -f $(APPNAME).app/Contents/MacOS/$(APPNAME)
-rm -f $(APPNAME).app/Contents/MacOS/$(APPNAME)_console
@@ -179,6 +180,11 @@ endif
echo -n APPLTRUE >$(APPNAME).app/Contents/PkgInfo
sed -e 's/_VERSION_/$(patsubst %a,%.1,$(patsubst %b,%.2,$(TC_VERSION)))/' ../Build/Resources/MacOSX/Info.plist.xml >$(APPNAME).app/Contents/Info.plist
codesign -s "Developer ID Application: Mounir IDRASSI" --timestamp $(APPNAME).app
+
+install: prepare
+ cp -R $(APPNAME).app /Applications/.
+
+package: prepare
/usr/local/bin/packagesbuild $(PWD)/Setup/MacOSX/veracrypt.pkgproj
productsign --sign "Developer ID Installer: Mounir IDRASSI" --timestamp "$(PWD)/Setup/MacOSX/VeraCrypt $(TC_VERSION).pkg" $(PWD)/Setup/MacOSX/VeraCrypt_$(TC_VERSION).pkg
rm -f $(APPNAME)_$(TC_VERSION).dmg
@@ -197,7 +203,7 @@ endif
ifeq "$(PLATFORM)" "Linux"
-ifeq "$(TC_BUILD_CONFIG)" "Release"
+prepare: $(APPNAME)
mkdir -p $(PWD)/Setup/Linux/usr/bin
mkdir -p $(PWD)/Setup/Linux/usr/share/$(APPNAME)/doc/HTML
cp $(PWD)/Main/$(APPNAME) $(PWD)/Setup/Linux/usr/bin/$(APPNAME)
@@ -214,6 +220,11 @@ ifndef TC_NO_GUI
endif
+install: prepare
+ cp -R $(PWD)/Setup/Linux/usr /.
+
+ifeq "$(TC_BUILD_CONFIG)" "Release"
+package: prepare
tar cfz $(PWD)/Setup/Linux/$(PACKAGE_NAME) --directory $(PWD)/Setup/Linux usr
@rm -fr $(INTERNAL_INSTALLER_NAME)
@@ -237,6 +248,24 @@ endif
endif
+ifeq "$(PLATFORM)" "FreeBSD"
+install: $(APPNAME)
+ mkdir -p /usr/share/$(APPNAME)/doc/HTML
+ cp $(PWD)/Main/$(APPNAME) /usr/bin/$(APPNAME)
+ cp $(PWD)/Setup/Linux/$(APPNAME)-uninstall.sh /usr/bin/$(APPNAME)-uninstall.sh
+ chmod +x /usr/bin/$(APPNAME)-uninstall.sh
+ cp $(PWD)/License.txt /usr/share/$(APPNAME)/doc/License.txt
+ cp $(PWD)/../doc/html/* "/usr/share/$(APPNAME)/doc/HTML"
+
+ifndef TC_NO_GUI
+ mkdir -p /usr/share/applications
+ mkdir -p /usr/share/pixmaps
+ cp $(PWD)/Resources/Icons/VeraCrypt-256x256.xpm /usr/share/pixmaps/$(APPNAME).xpm
+ cp $(PWD)/Setup/Linux/$(APPNAME).desktop /usr/share/applications/$(APPNAME).desktop
+endif
+
+endif
+
$(OBJS): $(PCH)
Resources.o: $(RESOURCES)