sshin/Makefile

28 lines
633 B
Makefile
Raw Normal View History

2022-04-27 20:10:50 +02:00
# sshin - ssh in
# See LICENSE file for copyright and license details.
# paths
PREFIX = /home/${USER}/.local
2022-10-03 23:07:09 +02:00
CONFPREFIX = /home/${USER}/.config
2022-04-27 20:10:50 +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 sshin $(PREFIX)/bin
mkdir -p $(DESTDIR)$(MANPREFIX)/man1
cp sshin.1 $(DESTDIR)$(MANPREFIX)/man1
2022-10-03 23:07:09 +02:00
mkdir -p $(DESTDIR)$(CONFPREFIX)/sshin
cp -n hosts.example $(DESTDIR)$(CONFPREFIX)/sshin/hosts
2022-04-27 20:10:50 +02:00
uninstall:
rm -f $(DESTDIR)$(PREFIX)/bin/sshin
rm -f $(DESTDIR)$(MANPREFIX)/man1/sshin.1
2022-10-03 23:07:09 +02:00
rm -f $(DESTDIR)$(CONFPREFIX)/sshin/