equal
deleted
inserted
replaced
9 # uninstall remove dictionaries, they been unavailable in stardict, may require root permission |
9 # uninstall remove dictionaries, they been unavailable in stardict, may require root permission |
10 # install-local install dictionaries in user HOME dir, so they been available in stardict for that user |
10 # install-local install dictionaries in user HOME dir, so they been available in stardict for that user |
11 # uninstall-local remove dictionaries from user HOME directory |
11 # uninstall-local remove dictionaries from user HOME directory |
12 # install-local-symlink create symlink from installed dir to user HOME dir, so dictionaries been available in stardict |
12 # install-local-symlink create symlink from installed dir to user HOME dir, so dictionaries been available in stardict |
13 # uninstall-local-symlink remove symlink from user HOME directory |
13 # uninstall-local-symlink remove symlink from user HOME directory |
|
14 # |
|
15 # You can override such variables in Makefile.config: |
|
16 # |
|
17 # SF_USER SourceForge user name |
14 |
18 |
15 SHELL = /bin/sh |
19 SHELL = /bin/sh |
16 export PATH := /bin:/usr/bin:${PATH} |
20 export PATH := /bin:/usr/bin:${PATH} |
17 |
21 |
18 # Disable built in pattern rules. |
22 # Disable built in pattern rules. |
21 MAKEFLAGS += -R |
25 MAKEFLAGS += -R |
22 # Disable built in suffix rules. |
26 # Disable built in suffix rules. |
23 .SUFFIXES: |
27 .SUFFIXES: |
24 # Default target. |
28 # Default target. |
25 .DEFAULT_GOAL = help |
29 .DEFAULT_GOAL = help |
|
30 |
|
31 ################################################################ |
|
32 # Build script definitions. |
|
33 |
|
34 BUILD_SCRIPT := $(firstword $(MAKEFILE_LIST)) |
|
35 |
|
36 ifneq '' '$(wildcard Makefile.config)' |
|
37 include Makefile.config |
|
38 BUILD_SCRIPT += Makefile.config |
|
39 endif |
26 |
40 |
27 ################################################################ |
41 ################################################################ |
28 # Version extracting/generation. |
42 # Version extracting/generation. |
29 |
43 |
30 # Prevent from deploying and distributing with wrong version. |
44 # Prevent from deploying and distributing with wrong version. |
87 datadir = $(datarootdir)/dictd |
101 datadir = $(datarootdir)/dictd |
88 |
102 |
89 ################################################################ |
103 ################################################################ |
90 # Project dirs/files. |
104 # Project dirs/files. |
91 |
105 |
92 BUILD_SCRIPT := $(firstword $(MAKEFILE_LIST)) |
|
93 |
|
94 C5_FILES := $(wildcard *.dict-c5) |
106 C5_FILES := $(wildcard *.dict-c5) |
95 DICT_FILES := $(C5_FILES:.dict-c5=.dict) |
107 DICT_FILES := $(C5_FILES:.dict-c5=.dict) |
96 DICTDZ_FILES := $(C5_FILES:.dict-c5=.dict.dz) |
108 DICTDZ_FILES := $(C5_FILES:.dict-c5=.dict.dz) |
97 INDEX_FILES := $(C5_FILES:.dict-c5=.index) |
109 INDEX_FILES := $(C5_FILES:.dict-c5=.index) |
98 |
110 |
114 DISTSRC_TARBALLS = $(DISTSRC_DIR).tar.gz $(DISTSRC_DIR).tar.bz2 |
126 DISTSRC_TARBALLS = $(DISTSRC_DIR).tar.gz $(DISTSRC_DIR).tar.bz2 |
115 |
127 |
116 ################################################################ |
128 ################################################################ |
117 # Deploy targets. |
129 # Deploy targets. |
118 |
130 |
|
131 ifeq '' '$(SF_USER)' |
|
132 SF_USER := gavenkoa |
|
133 endif |
|
134 |
119 .PHONY: deploy |
135 .PHONY: deploy |
120 deploy: deploy2sf |
136 deploy: deploy2sf |
121 |
137 |
122 SFTP_PATH = gavenkoa,$(name)@frs.sourceforge.net |
138 SFTP_PATH = $(SF_USER),$(name)@frs.sourceforge.net |
123 |
139 |
124 # First time you deploy to SourceForge (sf) you need manually login to: |
140 # First time you deploy to SourceForge (sf) you need manually login to: |
125 # $ sftp $(SFTP_PATH) |
141 # $ sftp $(SFTP_PATH) |
126 # as it may require interactive input for accepting server public key. |
142 # as it may require interactive input for accepting server public key. |
127 # Next time any action fully automated. |
143 # Next time any action fully automated. |