]> thyrsus.com Git - deal.git/commitdiff
Initial revision
authorEric S. Raymond <esr@thyrsus.com>
Fri, 28 Jul 2000 04:26:31 +0000 (04:26 +0000)
committerEric S. Raymond <esr@thyrsus.com>
Fri, 28 Jul 2000 04:26:31 +0000 (04:26 +0000)
Makefile [new file with mode: 0644]

diff --git a/Makefile b/Makefile
new file mode 100644 (file)
index 0000000..f052fd8
--- /dev/null
+++ b/Makefile
@@ -0,0 +1,30 @@
+#
+# Makefile for the card probability calculator
+#
+# Note: When the version changes, you also have to change
+#  * the name of the containing directory
+#  * the RPM spec file
+V=2.0
+
+SRC = Makefile deal.c deal.1 deal.lsm deal.spec
+
+deal: deal.c
+       $(CC) -g deal.c  -lm -o deal
+
+deal.shar: $(SRC)
+       shar $(SRC) >deal.shar
+
+deal.tar: $(SRC)
+       (cd ..; tar -cvf deal-$(V)/deal.tar `echo $(SRC) | sed "/\(^\| \)/s// deal-$(V)\//g"`)
+deal.tar.gz: deal.tar
+       gzip -f deal.tar
+
+clean:
+       rm -f deal deal.shar deal.tar deal.tar.gz
+
+rpm: deal.tar.gz
+       cp deal.tar.gz /usr/src/SOURCES/deal-$(V).tar.gz
+       cp deal.spec /usr/src/SPECS/deal-$(V)-1.spec
+       rpm -ba deal-$(V)-1.spec
+
+