31 lines
669 B
Makefile
31 lines
669 B
Makefile
# ne - nginx edit
|
|
# See LICENSE file for copyright and license details.
|
|
|
|
# paths
|
|
PREFIX = ~/.local
|
|
MANPREFIX = $(PREFIX)/share/man
|
|
SHELL = bash
|
|
|
|
include config.mk
|
|
|
|
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"
|
|
|
|
|
|
uninstall:
|
|
rm -f $(DESTDIR)$(PREFIX)/bin/ne
|
|
rm -f $(DESTDIR)$(MANPREFIX)/ne.1
|
|
|
|
.PHONY: install uninstall
|