aboutsummaryrefslogtreecommitdiff
path: root/Makefile
diff options
context:
space:
mode:
authorMateja <mail@matejamaric.com>2020-12-09 16:17:59 +0100
committerMateja <mail@matejamaric.com>2020-12-09 16:17:59 +0100
commitf5644c06b741ee51089a10286fd89a739d3d572f (patch)
tree74ffb4a3fbce2ca90ef3c1c5b80b9e77301d9f26 /Makefile
downloadmterm-f5644c06b741ee51089a10286fd89a739d3d572f.tar.gz
mterm-f5644c06b741ee51089a10286fd89a739d3d572f.zip
First commit.
Diffstat (limited to 'Makefile')
-rw-r--r--Makefile25
1 files changed, 25 insertions, 0 deletions
diff --git a/Makefile b/Makefile
new file mode 100644
index 0000000..25fff3d
--- /dev/null
+++ b/Makefile
@@ -0,0 +1,25 @@
+CC := gcc
+CFLAGS := -O2 -Wall $(shell pkg-config --cflags vte-2.91)
+LIBS := $(shell pkg-config --libs vte-2.91)
+
+PREFIX ?= /usr/local
+BINDIR ?= ${PREFIX}/bin
+DATADIR ?= ${PREFIX}/share
+MANDIR ?= ${DATADIR}/man
+
+mterm: main.c config.h; $(CC) $(CFLAGS) $? $(LIBS) -o $@
+
+run: mterm; ./mterm
+
+install: mterm mterm.desktop mterm.1
+ install -Dm755 mterm ${DESTDIR}${BINDIR}/mterm
+ install -Dm644 mterm.desktop ${DESTDIR}${DATADIR}/applications/mterm.desktop
+ install -Dm644 mterm.1 ${DESTDIR}${MANDIR}/man1/mterm.1
+
+uninstall:
+ rm -f ${DESTDIR}${BINDIR}/mterm
+ rm -f ${DESTDIR}${DATADIR}/applications/mterm.desktop
+ rm -f ${DESTDIR}${MANDIR}/man1/mterm.1
+
+clean:
+ rm mterm