forked from mbaltaks/doublecommand
-
Notifications
You must be signed in to change notification settings - Fork 1
/
Makefile
63 lines (49 loc) · 1.58 KB
/
Makefile
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
.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