blob: b88dbf5475dfb9edcc4d7d64e5375a3eb3c0eefe (
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
37
38
39
40
41
42
|
# gramscii - simple editor for ASCII box-and-arrow charts
.POSIX:
include config.mk
SRC = main.c draw.c screen.c files.c
INC = config.h gramscii.h
all: options gramscii
options:
@echo "-+- build options -+-"
@echo "PREFIX = $(PREFIX)"
@echo "CFLAGS = $(CFLAGS)"
@echo "LDFLAGS = $(LDFLAGS)"
@echo "CC = $(CC)"
@echo "-+-+-+-+-+-+-+-+-+-+-"
gramscii: ${SRC} ${INC}
$(CC) $(CFLAGS) -o gramscii ${SRC}
clean:
@echo cleaning
@rm -f $(SRC:.c=) gramscii
install: all
@echo installing executable to ${DESTDIR}${BINDIR}
@mkdir -p "${DESTDIR}${BINDIR}"
@cp -f gramscii "${DESTDIR}${BINDIR}"
@chmod 755 "${DESTDIR}${BINDIR}/gramscii"
@echo installing manpage to "${DESTDIR}${MANDIR}/man1"
@mkdir -p "${DESTDIR}${MANDIR}/man1"
@cp -f gramscii.1 "${DESTDIR}${MANDIR}/man1"
@chmod 644 "${DESTDIR}${MANDIR}/man1/gramscii.1"
uninstall:
@echo removing executable file from ${DESTDIR}${BINDIR}
@rm -f "${DESTDIR}${BINDIR}/gramscii"
@echo removing manpage from "${DESTDIR}${MANDIR}/man1"
@rm -f "${DESTDIR}${MANDIR}/man1/gramscii.1"
|