summaryrefslogtreecommitdiff
path: root/Makefile
diff options
context:
space:
mode:
Diffstat (limited to 'Makefile')
-rw-r--r--Makefile9
1 files changed, 9 insertions, 0 deletions
diff --git a/Makefile b/Makefile
index d32d330..45274aa 100644
--- a/Makefile
+++ b/Makefile
@@ -52,15 +52,24 @@ install: all
@mkdir -p $(DESTDIR)$(PREFIX)/bin
@cp -f surf $(DESTDIR)$(PREFIX)/bin
@chmod 755 $(DESTDIR)$(PREFIX)/bin/surf
+ @echo installing surf-menu to $(DESTDIR)$(PREFIX)/bin
+ @cp -f surf-menu $(DESTDIR)$(PREFIX)/bin
+ @chmod 755 $(DESTDIR)$(PREFIX)/bin/surf-menu
@echo installing manual page to $(DESTDIR)$(MANPREFIX)/man1
@mkdir -p $(DESTDIR)$(MANPREFIX)/man1
@sed "s/VERSION/$(VERSION)/g" < surf.1 > $(DESTDIR)$(MANPREFIX)/man1/surf.1
@chmod 644 $(DESTDIR)$(MANPREFIX)/man1/surf.1
+ @echo installing desktop file to $(DESTDIR)/usr/share/applications
+ @mkdir -p $(DESTDIR)/usr/share/applications
+ @cp -f surf.desktop $(DESTDIR)/usr/share/applications/surf.desktop
uninstall:
@echo removing executable file from $(DESTDIR)$(PREFIX)/bin
@rm -f $(DESTDIR)$(PREFIX)/bin/surf
+ @rm -f $(DESTDIR)$(PREFIX)/bin/surf-menu
@echo removing manual page from $(DESTDIR)$(MANPREFIX)/man1
@rm -f $(DESTDIR)$(MANPREFIX)/man1/surf.1
+ @echo removing desktop page from $(DESTDIR)/usr/share/applications
+ @rm -f $(DESTDIR)/usr/share/applications/surf.desktop
.PHONY: all options clean dist install uninstall