2022-03-31 16:26:25 +02:00
|
|
|
# ne - nginx edit
|
|
|
|
# See LICENSE file for copyright and license details.
|
|
|
|
|
|
|
|
# paths
|
2022-04-09 15:01:41 +02:00
|
|
|
PREFIX = /home/${USER}/.local
|
2022-03-31 16:26:25 +02:00
|
|
|
MANPREFIX = $(PREFIX)/share/man
|
|
|
|
SHELL = bash
|
|
|
|
|
|
|
|
SRC = drw.c dmenu.c stest.c util.c
|
|
|
|
OBJ = $(SRC:.c=.o)
|
|
|
|
|
|
|
|
all: install
|
|
|
|
|
|
|
|
install:
|
|
|
|
mkdir -p $(DESTDIR)$(PREFIX)/bin
|
|
|
|
cp ne $(PREFIX)/bin
|
|
|
|
mkdir -p $(DESTDIR)$(MANPREFIX)/man1
|
|
|
|
cp ne.1 $(DESTDIR)$(MANPREFIX)/man1
|
|
|
|
|
|
|
|
#problema del check: in PATH si trova estesa, qua e' con ~
|
|
|
|
#echo "${PATH}" | grep -q "$(DESTDIR)$(PREFIX)/bin" || echo "$(DESTDIR)$(PREFIX)/bin is not in the PATH variable, ne won't run"
|
2022-04-09 15:01:41 +02:00
|
|
|
#(echo ${PATH} | grep -q $(PREFIX)/bin) || echo "$(DESTDIR)$(PREFIX)/bin is not in the PATH variable, ne won't run"
|
2022-03-31 16:26:25 +02:00
|
|
|
|
|
|
|
uninstall:
|
|
|
|
rm -f $(DESTDIR)$(PREFIX)/bin/ne
|
2022-03-31 16:28:22 +02:00
|
|
|
rm -f $(DESTDIR)$(MANPREFIX)/man1/ne.1
|