Introduction
Introduction Statistics Contact Development Disclaimer Help
Makefile - gramscii - A simple editor for ASCII box-and-arrow charts
Log
Files
Refs
Tags
README
LICENSE
---
Makefile (1483B)
---
1 # gramscii - simple editor for ASCII box-and-arrow charts
2 .POSIX:
3
4 include config.mk
5
6 SRC = gramscii.c draw.c screen.c files.c lineset.c
7 INC = config.h gramscii.h arg.h
8 OBJ = ${SRC:.c=.o}
9 DISTFILES = ${SRC} ${INC} Makefile config.mk README.md Changelog gramsci…
10
11 all: options gramscii
12
13 options:
14 @echo "-+- build options -+-"
15 @echo "PREFIX = ${PREFIX}"
16 @echo "CFLAGS = ${CFLAGS}"
17 @echo "LDFLAGS = ${LDFLAGS}"
18 @echo "CC = ${CC}"
19 @echo "-+-+-+-+-+-+-+-+-+-+-"
20
21 gramscii: ${OBJ}
22 ${CC} ${LDFLAGS} -o gramscii ${OBJ}
23
24 ${OBJ}: ${INC}
25
26 debug: clean
27 ${MAKE} CFLAGS="${DEBUG}" all
28
29 clean:
30 @echo cleaning
31 @rm -f gramscii ${OBJ}
32
33 install: all
34 @echo installing executable to ${DESTDIR}${BINDIR}
35 @mkdir -p "${DESTDIR}${BINDIR}"
36 @cp -f gramscii "${DESTDIR}${BINDIR}"
37 @chmod 755 "${DESTDIR}${BINDIR}/gramscii"
38 @echo installing manpage to "${DESTDIR}${MANDIR}/man1"
39 @mkdir -p "${DESTDIR}${MANDIR}/man1"
40 @cp -f gramscii.1 "${DESTDIR}${MANDIR}/man1"
41 @chmod 644 "${DESTDIR}${MANDIR}/man1/gramscii.1"
42
43 uninstall:
44 @echo removing executable file from ${DESTDIR}${BINDIR}
45 @rm -f "${DESTDIR}${BINDIR}/gramscii"
46 @echo removing manpage from "${DESTDIR}${MANDIR}/man1"
47 @rm -f "${DESTDIR}${MANDIR}/man1/gramscii.1"
48
49 dist: clean
50 @echo "making a tarball"
51 @mkdir -p ./gramscii-${VERSION}
52 @rm -rf ./gramscii-${VERSION}/*
53 @cp -R ${DISTFILES} ./gramscii-${VERSION}/
54 @tar -cf gramscii-${VERSION}.tar ./gramscii-${VERSION}
55 @gzip gramscii-${VERSION}.tar
56 @rm -rf gramscii-${VERSION}
You are viewing proxied material from bitreich.org. The copyright of proxied material belongs to its original authors. Any comments or complaints in relation to proxied material should be directed to the original authors of the content concerned. Please see the disclaimer for more details.