Make SourceForge user name as configurable parameter.
--- a/Makefile Fri Jan 13 00:28:51 2012 +0200
+++ b/Makefile Fri Jan 13 23:21:12 2012 +0200
@@ -11,6 +11,10 @@
# uninstall-local remove dictionaries from user HOME directory
# install-local-symlink create symlink from installed dir to user HOME dir, so dictionaries been available in stardict
# uninstall-local-symlink remove symlink from user HOME directory
+#
+# You can override such variables in Makefile.config:
+#
+# SF_USER SourceForge user name
SHELL = /bin/sh
export PATH := /bin:/usr/bin:${PATH}
@@ -25,6 +29,16 @@
.DEFAULT_GOAL = help
################################################################
+# Build script definitions.
+
+BUILD_SCRIPT := $(firstword $(MAKEFILE_LIST))
+
+ifneq '' '$(wildcard Makefile.config)'
+ include Makefile.config
+ BUILD_SCRIPT += Makefile.config
+endif
+
+################################################################
# Version extracting/generation.
# Prevent from deploying and distributing with wrong version.
@@ -89,8 +103,6 @@
################################################################
# Project dirs/files.
-BUILD_SCRIPT := $(firstword $(MAKEFILE_LIST))
-
C5_FILES := $(wildcard *.dict-c5)
DICT_FILES := $(C5_FILES:.dict-c5=.dict)
DICTDZ_FILES := $(C5_FILES:.dict-c5=.dict.dz)
@@ -116,10 +128,14 @@
################################################################
# Deploy targets.
+ifeq '' '$(SF_USER)'
+ SF_USER := gavenkoa
+endif
+
.PHONY: deploy
deploy: deploy2sf
-SFTP_PATH = gavenkoa,$(name)@frs.sourceforge.net
+SFTP_PATH = $(SF_USER),$(name)@frs.sourceforge.net
# First time you deploy to SourceForge (sf) you need manually login to:
# $ sftp $(SFTP_PATH)