Permalink
Fetching contributors…
Cannot retrieve contributors at this time
64 lines (49 sloc) 1.58 KB
.PHONY: build versions clean package disk_image docs
# Project global make settings go in this file
include Make.config
# commands
chown=/usr/sbin/chown
chmod=/bin/chmod
hdiutil=/usr/bin/hdiutil
# places
tmp=build
image=$(tmp)/image
release: versions docs build package disk_image
@echo built release package
versions:
( cd kext; make versions )
( cd prefpane; make versions )
( cd package; make versions )
build:
( cd kext; make build )
( cd prefpane; make build )
clean:
( cd kext; make clean )
( cd prefpane; make clean )
rm -f docs/*.html
package:
( cd package; make build )
disk_image:
rm -f $(tmp)/DoubleCommand-`cat $(VERSION_FILE)`.dmg
rm -fr $(image)
mkdir -p $(image)/Documentation
cp docs/*.gif docs/*.html docs/*.css docs/*.txt $(image)/Documentation
cp -R $(tmp)/DoubleCommand-`cat $(VERSION_FILE)`.pkg $(image)
#cp image_resources/*.png $(image)
#cp image_resources/_DS_Store $(image)/.DS_Store
$(hdiutil) create -srcfolder $(image) \
-volname DoubleCommand -format UDBZ \
$(tmp)/DoubleCommand-`cat $(VERSION_FILE)`.dmg
uninstall:
kextunload -b com.baltaks.driver.DoubleCommand
rm -rf /Library/PreferencePanes/DoubleCommandPreferences.prefPane
rm -rf /Library/StartupItems/DoubleCommand
rm -rf /Library/Receipts/DoubleCommand*.pkg
docs:
php -f docs/developers.php > docs/developers.html
php -f docs/download.php > docs/download.html
php -f docs/features.php > docs/features.html
php -f docs/index.php > docs/index.html
php -f docs/help.php > docs/help.html
php -f docs/news_archive.php > docs/news_archive.html
php -f docs/history.php > docs/history.html