kicad/packaging/mac-osx/dmg-generator/Makefile

41 lines
939 B
Makefile
Raw Normal View History

2010-01-16 18:46:38 +00:00
###########
# KiCad OSX DMG packaging
# Create a bin directory and copy the .app files in
# Create a build directory
# Then execute the makefile
#
# Original credits by Adium developers !
# http://www.adium.im
###########
2010-05-16 18:18:38 +00:00
VERSION=`date +%Y%m%d`
2010-01-16 18:46:38 +00:00
###########
# Variables
###########
BUILD_DIR=build
2010-01-18 19:33:45 +00:00
APP_DIR=release
2010-01-16 18:46:38 +00:00
KICAD_DIR=$(BUILD_DIR)
RELEASE_NAME=kicad-$(VERSION)
###########
# Targets
###########
all:
2010-05-16 18:18:38 +00:00
echo "Copying application bundles"
mkdir release
cp -R ../../../*/*.app release
echo "Building kicad-${VERSION}.dmg"
2010-01-16 18:46:38 +00:00
rm -rfv build
mkdir build
cp -r $(APP_DIR)/* $(BUILD_DIR)
mkdir -p $(BUILD_DIR)/.background
cp Artwork/dmgBackground.png $(BUILD_DIR)/.background
./mkalias -r /Applications $(BUILD_DIR)/Applications
mkdir -p $(BUILD_DIR)/.background
2010-05-16 18:18:38 +00:00
./make-diskimage.sh $(BUILD_DIR)/$(RELEASE_NAME).dmg $(KICAD_DIR) "KiCad" dmg_kicad.scpt $(ART_DIR)
2010-01-16 18:46:38 +00:00
2010-05-16 18:18:38 +00:00
@echo "Build finished. `md5 $(BUILD_DIR)/$(RELEASE_NAME).dmg`"