Revision 238
Added by Aaron Marcuse-Kubitza about 13 years ago
Makefile | ||
---|---|---|
1 | 1 |
esc = '[' |
2 | 2 |
reset = $(esc)'0m' |
3 | 3 |
highlight = $(esc)'7m' |
4 |
wait = read -p $(highlight)'Press ENTER to continue:'$(reset) REPLY |
|
4 | 5 |
|
5 | 6 |
os = $(shell uname) |
6 | 7 |
forOs = $(patsubst %,%-$(filter Linux Darwin,$(os)),$(1)) |
... | ... | |
21 | 22 |
.PHONY: _not_file |
22 | 23 |
|
23 | 24 |
|
25 |
ifneq ($(filter _user _mysql-Linux,$(MAKECMDGOALS)),) |
|
26 |
include util/vegbien_dest |
|
27 |
endif |
|
28 |
|
|
29 |
|
|
24 | 30 |
install: _not_file deps user db |
25 | 31 |
|
26 | 32 |
uninstall: _not_file rm_db rm_user |
... | ... | |
37 | 43 |
postgres-Darwin: _not_file |
38 | 44 |
|
39 | 45 |
mysql-Linux: _not_file |
46 |
$(MAKE) _$@ |
|
47 |
_mysql-Linux: _not_file |
|
48 |
@echo $(highlight)"At prompt for MySQL root password, enter $(out_password)"$(reset) |
|
49 |
@$(wait) |
|
40 | 50 |
-sudo apt-get install mysql-server mysql-client python-mysqldb |
41 | 51 |
|
42 | 52 |
mysql-Darwin: _not_file |
... | ... | |
54 | 64 |
@echo 'Run sudo python setup.py build' |
55 | 65 |
@echo 'Run sudo python setup.py install' |
56 | 66 |
@echo "Run python -c 'import MySQLdb'" |
57 |
@read -p $(highlight)'Press ENTER to continue: '$(reset)
|
|
67 |
@$(wait)
|
|
58 | 68 |
|
59 | 69 |
# Catch-alls for other OSes |
60 | 70 |
mysql-: |
... | ... | |
67 | 77 |
|
68 | 78 |
user: _not_file |
69 | 79 |
$(MAKE) _$@ |
70 |
|
|
71 |
ifeq ($(MAKECMDGOALS),_user) |
|
72 |
include util/vegbien_dest |
|
73 |
endif |
|
74 |
|
|
75 | 80 |
_user: _not_file |
76 | 81 |
@echo $(highlight)"At sudo password prompt, enter *your* password"$(reset) |
77 | 82 |
@sudo -v |
Also available in: Unified diff
scripts/Makefile: Made read command syntax compatible with /bin/sh