File: Makefile

package info (click to toggle)
rexec 1.4-1
  • links: PTS
  • area: main
  • in suites: slink
  • size: 60 kB
  • ctags: 29
  • sloc: ansic: 357; makefile: 62
file content (27 lines) | stat: -rw-r--r-- 570 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27

SHELL = /bin/sh

BINDIR = /usr/local/bin
MANDIR = /usr/local/man/man1

.PHONY: all

all: rexec install

rexec: rexec.o

rexec.1:

install: rexec rexec.1
	@ echo "Installation:  Press enter for defaults."; \
	echo -n "Enter the location to install executable "; \
	echo -n " (default: $(BINDIR)): "; \
	read bindir; \
	bindir=$${bindir:-$(BINDIR)}; \
	echo -n "Enter the manpage location (default $(MANDIR)): ";\
	read mandir; \
	mandir=$${mandir:-$(MANDIR)}; \
	cp rexec $$bindir; \
	chmod a+rx $${bindir}/rexec; \
	cp rexec.1 $$mandir; \
	chmod a+r $${mandir}/rexec.1