From: W. Trevor King Date: Wed, 24 Mar 2010 19:06:59 +0000 (-0400) Subject: Added a preliminary Makefile X-Git-Tag: v0.3~6 X-Git-Url: http://git.tremily.us/?a=commitdiff_plain;h=1bbbd1f38a10141003f51b79adbce1de1430eda7;p=pypid.git Added a preliminary Makefile --- diff --git a/Makefile b/Makefile new file mode 100644 index 0000000..3ac1df8 --- /dev/null +++ b/Makefile @@ -0,0 +1,31 @@ +PROG_NAME = temperature +VERSION = 0.1 +PYTHON_SCRIPTS = temperature.py +OTHER_FILES = README Makefile +DIST_FILES = $(PYTHON_SCRIPTS) $(OTHER_FILES) +DIST_DIR = $(PROG_NAME)-$(VERSION) +DIST_NAME = $(PROG_NAME)-$(VERSION).tar.gz + +PYTHON_DIR = $(HOME)/.python + +GENERATED_FILES = $(DIST_NAME) + +all : # all scripts, nothing to compile + +clean : + rm -f $(GENERATED_FILES) + +install : uninstall + cp $(PYTHON_SCRIPTS) $(PYTHON_DIR) + +uninstall : + rm -f $(PYTHON_SCRIPTS:%=$(PYTHON_DIR)/%) + +dist : + mkdir $(DIST_DIR) + cp $(DIST_FILES) $(DIST_DIR) + tar -chozf $(DIST_NAME) $(DIST_DIR) + rm -rf $(DIST_DIR) + +check : + python ./temperature.py