-
Notifications
You must be signed in to change notification settings - Fork 15
/
Copy pathMakefile
24 lines (21 loc) · 862 Bytes
/
Makefile
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
PREFIX ?= /usr/local
CONFIG ?= /etc
all:
@echo Run \'make install\' to install dmenufm.
@echo You can find config file at ~/.config/dmenufm
install:
@mkdir -p $(DESTDIR)$(PREFIX)/bin
@mkdir -p $(DESTDIR)$(CONFIG)
@mkdir -p $(DESTDIR)$(PREFIX)/share/applications
@cp -p dmenufm $(DESTDIR)$(PREFIX)/bin/dmenufm
@cp -p dmenufm-open $(DESTDIR)$(PREFIX)/bin/dmenufm-open
@cp -p dmenufm-menu $(DESTDIR)$(PREFIX)/bin/dmenufm-menu
@cp -p dmenufm-action $(DESTDIR)$(PREFIX)/bin/dmenufm-action
@cp -p dmenufm.conf $(DESTDIR)$(CONFIG)/dmenufm.conf
@cp -p dmenufm.desktop $(DESTDIR)$(PREFIX)/share/applications
@chmod 755 $(DESTDIR)$(PREFIX)/bin/dmenufm
@chmod 755 $(DESTDIR)$(PREFIX)/bin/dmenufm-*
uninstall:
@rm -rf $(DESTDIR)$(PREFIX)/bin/dmenufm*
@rm -rf $(DESTDIR)$(PREFIX)/share/applications/dmenufm.desktop
@rm -rf $(DESTDIR)$(CONFIG)/dmenufm.conf