From 056e8b4b540584b0612c5b5e9b20d472b87c4a84 Mon Sep 17 00:00:00 2001
From: Akira Ohgaki <akiraohgaki@gmail.com>
Date: Fri, 15 Jul 2016 16:42:49 +0900
Subject: [PATCH] Add Makefile

---
 Makefile | 38 ++++++++++++++++++++++++++++++++++++++
 1 file changed, 38 insertions(+)
 create mode 100644 Makefile

diff --git a/Makefile b/Makefile
new file mode 100644
index 0000000..456639e
--- /dev/null
+++ b/Makefile
@@ -0,0 +1,38 @@
+SHELL = /bin/sh
+
+TARGET = xdgurl
+srcdir = ./src
+
+DESTDIR =
+prefix = /usr/local
+exec_prefix = $(prefix)
+bindir = $(exec_prefix)/bin
+datadir = $(prefix)/share
+
+INSTALL = install
+INSTALL_PROGRAM = $(INSTALL) -D -m 755
+INSTALL_DATA = $(INSTALL) -D -m 644
+RM = rm -f
+
+.PHONY: all rebuild build clean install uninstall
+
+all: rebuild ;
+
+rebuild: clean build ;
+
+build: $(TARGET) ;
+
+clean:
+	$(RM) ./$(TARGET)
+
+install: build
+	$(INSTALL_PROGRAM) ./$(TARGET) $(DESTDIR)$(bindir)/$(TARGET)
+	$(INSTALL_DATA) $(srcdir)/$(TARGET).desktop $(DESTDIR)$(datadir)/applications/$(TARGET).desktop
+
+uninstall:
+	$(RM) $(DESTDIR)$(bindir)/$(TARGET)
+	$(RM) $(DESTDIR)$(datadir)/applications/$(TARGET).desktop
+
+$(TARGET):
+	# Just copy for now
+	install -m 755 $(srcdir)/$(TARGET).py ./$(TARGET)
-- 
GitLab