You cannot select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
14 lines
459 B
Makefile
14 lines
459 B
Makefile
PREFIX ?= /usr
|
|
DATADIR ?= $(PREFIX)/share
|
|
BINDIR ?= $(PREFIX)/bin
|
|
|
|
all:
|
|
@ echo "Nothing to compile. Use: make install, make uninstall"
|
|
|
|
install:
|
|
mkdir -p $(DESTDIR)$(DATADIR)/duma-ssh-central-auth
|
|
cp -rv servers users $(DESTDIR)$(DATADIR)/duma-ssh-central-auth/
|
|
mkdir -p $(DESTDIR)$(BINDIR)
|
|
cat duma-ssh-central-auth.sh | sed -e "s,@DATADIR@,$(DATADIR),g" > $(DESTDIR)$(BINDIR)/duma-ssh-central-auth
|
|
chmod 0755 $(DESTDIR)$(BINDIR)/duma-ssh-central-auth
|