Introduction
Introduction Statistics Contact Development Disclaimer Help
Makefile - lel - Farbfeld image viewer
git clone git://git.codemadness.org/lel
Log
Files
Refs
README
LICENSE
---
Makefile (1080B)
---
1 include config.mk
2
3 NAME = lel
4 SRC = lel.c
5 OBJ = ${SRC:.c=.o}
6
7 all: lel
8
9 options:
10 @echo ${NAME} build options:
11 @echo "CFLAGS = ${CFLAGS}"
12 @echo "LDFLAGS = ${LDFLAGS}"
13 @echo "CC = ${CC}"
14
15 .c.o:
16 ${CC} -c ${CFLAGS} $<
17
18 ${OBJ}: config.mk
19
20 lel: lel.o
21 ${CC} -o $@ lel.o ${LDFLAGS}
22
23 clean:
24 rm -f lel ${OBJ}
25
26 install: all
27 @echo installing executable file to ${DESTDIR}${PREFIX}/bin
28 @mkdir -p ${DESTDIR}${PREFIX}/bin
29 @cp -f lel ${DESTDIR}${PREFIX}/bin
30 @cp -f lel-open ${DESTDIR}${PREFIX}/bin
31 @chmod 755 ${DESTDIR}${PREFIX}/bin/lel
32 @chmod 755 ${DESTDIR}${PREFIX}/bin/lel-open
33 @echo installing manual pages to ${DESTDIR}${MANPREFIX}/man1
34 @mkdir -p ${DESTDIR}${MANPREFIX}/man1
35 @cp -f lel.1 ${DESTDIR}${MANPREFIX}/man1
36 @chmod 644 ${DESTDIR}${MANPREFIX}/man1/lel.1
37
38 uninstall:
39 @echo removing executable file from ${DESTDIR}${PREFIX}/bin
40 @rm -f ${DESTDIR}${PREFIX}/bin/lel
41 @rm -f ${DESTDIR}${PREFIX}/bin/lel-open
42 @echo removing manual pages from ${DESTDIR}${MANPREFIX}/man1
43 @rm -f ${DESTDIR}${MANPREFIX}/man1/lel.1
44
45 .PHONY: all options clean dist install uninstall
You are viewing proxied material from codemadness.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.