about summary refs log tree commit diff stats
path: root/linux
diff options
context:
space:
mode:
authorMarco Peereboom <marco@conformal.com>2011-11-03 14:34:08 -0500
committerMarco Peereboom <marco@conformal.com>2011-11-03 14:34:08 -0500
commit3aae6399ece597749012d718d29d39931133174e (patch)
treeb5f40b12db69109d1a6e2a75eacdaf34b6e988d2 /linux
parent5d86a4392fad1329624ff547eedbf9e8f46888dc (diff)
downloadxombrero-3aae6399ece597749012d718d29d39931133174e.tar.gz
add uninstall target and install icon already
Diffstat (limited to 'linux')
-rw-r--r--linux/Makefile19
1 files changed, 19 insertions, 0 deletions
diff --git a/linux/Makefile b/linux/Makefile
index 2a74391..077c8a1 100644
--- a/linux/Makefile
+++ b/linux/Makefile
@@ -7,6 +7,7 @@ PREFIX?= /usr/local
 BINDIR?= $(PREFIX)/bin
 LIBDIR?= $(PREFIX)/lib
 MANDIR?= $(PREFIX)/share/man
+RESDIR?= $(PREFIX)/share/xxxterm
 
 SRCS= $(shell ls ../*.c)
 SRCS+= linux.c
@@ -34,9 +35,27 @@ install: all
 	install -m 755 -d $(DESTDIR)$(BINDIR)
 	install -m 755 -d $(DESTDIR)$(LIBDIR)
 	install -m 755 -d $(DESTDIR)$(MANDIR)/man1
+	install -m 755 -d $(DESTDIR)$(RESDIR)
 	install -m 755 xxxterm $(DESTDIR)$(BINDIR)
 	install -m 644 ../xxxterm.1 $(DESTDIR)$(MANDIR)/man1/xxxterm.1
+	install -m 644 ../xxxtermicon16.png $(DESTDIR)$(RESDIR)
+	install -m 644 ../xxxtermicon32.png $(DESTDIR)$(RESDIR)
+	install -m 644 ../xxxtermicon48.png $(DESTDIR)$(RESDIR)
+	install -m 644 ../xxxtermicon64.png $(DESTDIR)$(RESDIR)
+	install -m 644 ../xxxtermicon128.png $(DESTDIR)$(RESDIR)
+	install -m 644 ../style.css $(DESTDIR)$(RESDIR)
 
+uninstall:
+	rm -f $(DESTDIR)$(BINDIR)/xxxterm
+	rm -f $(DESTDIR)$(MANDIR)/man1/xxxterm.1
+	rm -f $(DESTDIR)$(RESDIR)/xxxtermicon.png
+	rm -f $(DESTDIR)$(RESDIR)/xxxtermicon16.png
+	rm -f $(DESTDIR)$(RESDIR)/xxxtermicon32.png
+	rm -f $(DESTDIR)$(RESDIR)/xxxtermicon48.png
+	rm -f $(DESTDIR)$(RESDIR)/xxxtermicon64.png
+	rm -f $(DESTDIR)$(RESDIR)/xxxtermicon128.png
+	rm -f $(DESTDIR)$(RESDIR)/style.css
+	if [ -d $(DESTDIR)$(RESDIR) ]; then rmdir $(DESTDIR)$(RESDIR); fi
 clean:
 	rm -f xxxterm $(OBJS) $(DEPS)
 	rm -f javascript.h