blob: a1624c8e7b1566bedf8229dbd2bd49e3dad95b6a (
plain)
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
28
29
30
31
32
33
34
35
36
|
# gramscii - simple editor for ASCII box-and-arrow charts
include config.mk
SRC = gramscii.c
INCLUDES = config.h
all: options gramscii
options:
@echo "-+- build options -+-"
@echo "PREFIX = $(PREFIX)"
@echo "CFLAGS = $(CFLAGS)"
@echo "CC = $(CC)"
@echo "-+-+-+-+-+-+-+-+-+-+-"
gramscii: $(SRC) $(INCLUDES)
$(CC) $(CFLAGS) -o $@ $(SRC)
install: all
@echo installing executable to ${DESTDIR}${BINDIR}
@mkdir -p "${DESTDIR}${BINDIR}"
@cp -f ${NAME} "${DESTDIR}${BINDIR}"
@chmod 755 "${DESTDIR}${BINDIR}/${NAME}"
@echo installing manpage to "${DESTDIR}${MANDIR}/man1"
@mkdir -p "${DESTDIR}${MANDIR}/man1"
@cp -f ${NAME}.1 "${DESTDIR}${MANDIR}/man1"
@chmod 644 "${DESTDIR}${MANDIR}/man1/${NAME}.1"
uninstall:
@echo removing executable file from ${DESTDIR}${BINDIR}
@rm -f "${DESTDIR}${BINDIR}/${NAME}"
@echo removing manpage from "${DESTDIR}${MANDIR}"
@rm -f "${DESTDIR}${MANDIR}/man1/${NAME}.1"
|