Add Daniel to contributors, rename makefile
[elpher.git] / Makefile
diff --git a/Makefile b/Makefile
new file mode 100644 (file)
index 0000000..ac9c1c5
--- /dev/null
+++ b/Makefile
@@ -0,0 +1,32 @@
+include config.mk
+
+.PHONY: all help info package clean
+
+.SUFFIXES: .texi .info
+
+all: clean package
+
+help:
+       $(info make info     - generate the info manual)
+       $(info make package  - generate a tar file containing the package)
+       $(info make clean    - remove generated files)
+       @exit
+
+.texi.info:
+       $(MAKEINFO) --no-split $< -o $@
+
+dir: $(PKG).info
+       $(INSTALLINFO) $? $@
+
+info: $(PKG).info dir
+
+$(PKG)-$(VERSION).tar: $(PKG).info dir *.el COPYING
+       mkdir $(PKG)-$(VERSION)
+       cp -a $? $(PKG)-$(VERSION)/
+       $(TAR) -cf $@ $(PKG)-$(VERSION)
+       rm -rf $(PKG)-$(VERSION)
+
+package: $(PKG)-$(VERSION).tar
+
+clean:
+       rm -f $(PKG).info dir $(PKG)-$(VERSION).tar