-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
This commit was generated by cvs2svn to compensate for changes in r223,
which included commits to RCS files with non-trunk default branches.
- Loading branch information
0 parents
commit b84ee9d
Showing
5 changed files
with
1,430 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,37 @@ | ||
VERSION= | ||
|
||
PROGRAM_NAME=AbsTK | ||
|
||
PACKAGE_DIR=$(HOME) | ||
This comment has been minimized.
Sorry, something went wrong. |
||
PACKAGE_ROOT=$(PACKAGE_DIR)/$(PROGRAM_NAME) | ||
PACKAGE_BASE=$(PACKAGE_ROOT)/$(VERSION) | ||
PACKAGE_FILE=$(PACKAGE_DIR)/$(PACKAGE_NAME)--$(VERSION)--$(shell uname -m).tar.bz2 | ||
|
||
PYTHON_VERSION=2.4 | ||
PYTHON_LIBS=cwizard qtwizard wizard | ||
PYTHON_SITE=lib/python$(PYTHON_VERSION)/site-packages | ||
|
||
all: | ||
[ -e $(PYTHON_SITE) ] || mkdir -p $(PYTHON_SITE) | ||
for f in $(PYTHON_LIBS); \ | ||
do libf=$(PYTHON_SITE)/$$f.py; \ | ||
rm -f $$libf; ln -nfs ../../../src/$$f.py $$libf; \ | ||
done | ||
DirPythonCompile $(PYTHON_SITE) 2> /dev/null | ||
|
||
|
||
clean : | ||
for f in $(PYTHON_LIBS); do libf=$(PYTHON_SITE)/$$f; rm -f $$libf.{pyo,pyc,py}; done | ||
rmdir $(PYTHON_SITE) && rmdir lib/python$(PYTHON_VERSION) && rmdir lib | ||
|
||
version_check: | ||
@[ "$(VERSION)" = "" ] && { echo -e "Error: run make with VERSION=<version-number>.\n"; exit 1 ;} || exit 0 | ||
|
||
dist: version_check all | ||
rm -rf $(PACKAGE_ROOT) | ||
mkdir -p $(PACKAGE_BASE) | ||
find * -not -path "*/CVS" -and -not -path "*/CVS/*" -and -not -path "*.py[oc]" -and -not -path "*~" | cpio -p $(PACKAGE_BASE) | ||
cd $(PACKAGE_DIR); tar cvp $(PROGRAM_NAME) | bzip2 > $(PACKAGE_FILE) | ||
rm -rf $(PACKAGE_ROOT) | ||
echo "Package at $(PACKAGE_FILE)" | ||
|
Empty file.
Oops, something went wrong.
1