From 1bbbd1f38a10141003f51b79adbce1de1430eda7 Mon Sep 17 00:00:00 2001 From: "W. Trevor King" Date: Wed, 24 Mar 2010 15:06:59 -0400 Subject: [PATCH] Added a preliminary Makefile --- Makefile | 31 +++++++++++++++++++++++++++++++ 1 file changed, 31 insertions(+) create mode 100644 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 -- 2.26.2