added makefile and manpage

This commit is contained in:
2022-03-31 16:26:25 +02:00
parent 410491070a
commit d4a2ee903f
5 changed files with 91 additions and 5 deletions

30
Makefile Normal file
View File

@@ -0,0 +1,30 @@
# 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