aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMattias Andrée <maandree@operamail.com>2013-08-04 00:58:31 +0200
committerMattias Andrée <maandree@operamail.com>2013-08-04 00:58:31 +0200
commite92fb6086101516bd1ee4a668ac85be5160c88cd (patch)
tree7f8d2f6e00f86a9351a4bc912239d595d0963c6c
parentupdate e-mail (diff)
downloadauto-auto-complete-e92fb6086101516bd1ee4a668ac85be5160c88cd.tar.gz
auto-auto-complete-e92fb6086101516bd1ee4a668ac85be5160c88cd.tar.bz2
auto-auto-complete-e92fb6086101516bd1ee4a668ac85be5160c88cd.tar.xz
add makefile
Signed-off-by: Mattias Andrée <maandree@operamail.com>
-rw-r--r--.gitignore11
-rw-r--r--Makefile53
2 files changed, 60 insertions, 4 deletions
diff --git a/.gitignore b/.gitignore
index 008b446..67a696f 100644
--- a/.gitignore
+++ b/.gitignore
@@ -1,10 +1,13 @@
-/_/
-
-*~
+_/
\#*\#
-.\#*
+.*
+!.git*
+*~
*.swp
+*.swo
*.bak
+*.gz
+/auto-auto-complete
/bash
/fish
diff --git a/Makefile b/Makefile
new file mode 100644
index 0000000..f2f2706
--- /dev/null
+++ b/Makefile
@@ -0,0 +1,53 @@
+# Copying and distribution of this file, with or without modification,
+# are permitted in any medium without royalty provided the copyright
+# notice and this notice are preserved. This file is offered as-is,
+# without any warranty.
+
+PREFIX = /usr
+DATA = /share
+BIN = /bin
+PKGNAME = auto-auto-complete
+SHEBANG = /usr$(BIN)/env python3
+COMMAND = auto-auto-complete
+LICENSES = $(PREFIX)$(DATA)
+
+
+all: auto-auto-complete #doc
+
+#doc: info
+#
+#info: auto-auto-complete.info.gz
+#
+#%.info.gz: info/%.texinfo
+# makeinfo "$<"
+# gzip -9 -f "$*.info"
+
+auto-auto-complete: auto-auto-complete.py
+ cp "$<" "$@"
+ sed -i 's:#!/usr/bin/env python3:#!$(SHEBANG)":' "$@"
+
+install: auto-auto-complete #auto-auto-complete.info.gz
+ install -dm755 "$(DESTDIR)$(PREFIX)$(BIN)"
+ install -m755 auto-auto-complete "$(DESTDIR)$(PREFIX)$(BIN)/$(COMMAND)"
+ install -dm755 "$(DESTDIR)$(LICENSES)/$(PKGNAME)"
+ install -m644 COPYING LICENSE "$(DESTDIR)$(LICENSES)/$(PKGNAME)"
+ install -dm755 "$(DESTDIR)$(PREFIX)$(DATA)/doc/$(PKGNAME)"
+ install -m644 example "$(DESTDIR)$(PREFIX)$(DATA)/doc/$(PKGNAME)"
+# install -dm755 "$(DESTDIR)$(PREFIX)$(DATA)/info"
+# install -m644 auto-auto-complete.info.gz "$(DESTDIR)$(PREFIX)$(DATA)/info/$(PKGNAME).info.gz"
+
+uninstall:
+ rm -- "$(DESTDIR)$(PREFIX)$(BIN)/$(COMMAND)"
+ rm -- "$(DESTDIR)$(LICENSES)/$(PKGNAME)/COPYING"
+ rm -- "$(DESTDIR)$(LICENSES)/$(PKGNAME)/LICENSE"
+ rm -- "$(DESTDIR)$(PREFIX)$(DATA)/doc/$(PKGNAME)/example"
+ rmdir -- "$(DESTDIR)$(PREFIX)$(DATA)/doc/$(PKGNAME)"
+# rmdir -- "$(DESTDIR)$(LICENSES)/$(PKGNAME)"
+# rm -- "$(DESTDIR)$(PREFIX)$(DATA)/info/$(PKGNAME).info.gz"
+
+clean:
+ -rm -f auto-auto-complete #auto-auto-complete.info.gz
+
+
+.PHONY: all install uninstall clean
+