Introduction
Introduction Statistics Contact Development Disclaimer Help
Makefile - hurl - Gopher/HTTP/HTTPS file grabber
git clone git://git.codemadness.org/hurl
Log
Files
Refs
README
LICENSE
---
Makefile (1072B)
---
1 .POSIX:
2
3 NAME = hurl
4 VERSION = 0.8
5
6 PREFIX = /usr/local
7 BINDIR = ${PREFIX}/bin
8 MANDIR = ${PREFIX}/man/man1
9
10 HURL_CFLAGS = ${CFLAGS}
11 HURL_LDFLAGS = -ltls ${LDFLAGS}
12 HURL_CPPFLAGS = -D_DEFAULT_SOURCE -D_GNU_SOURCE -D_BSD_SOURCE
13
14 SRC = hurl.c
15 OBJ = ${SRC:.c=.o}
16
17 all: ${NAME}
18
19 .c.o:
20 ${CC} ${HURL_CFLAGS} ${HURL_CPPFLAGS} -c $<
21
22 ${OBJ}:
23
24 ${NAME}: ${OBJ}
25 ${CC} -o $@ ${OBJ} ${HURL_LDFLAGS}
26
27 clean:
28 rm -f ${NAME} ${OBJ} ${NAME}-${VERSION}.tar.gz
29
30 install: all
31 mkdir -p "${DESTDIR}${BINDIR}"
32 cp -f ${NAME} "${DESTDIR}${BINDIR}"
33 chmod 755 "${DESTDIR}${BINDIR}/${NAME}"
34 mkdir -p "${DESTDIR}${MANDIR}"
35 cp -f ${NAME}.1 "${DESTDIR}${MANDIR}"
36 chmod 644 "${DESTDIR}${MANDIR}/${NAME}.1"
37
38 uninstall:
39 rm -f "${DESTDIR}${BINDIR}/${NAME}"
40 rm -f "${DESTDIR}${MANDIR}/${NAME}.1"
41
42 dist: clean
43 rm -rf "${NAME}-${VERSION}"
44 mkdir -p ${NAME}-${VERSION}
45 cp -R hurl.vt README LICENSE Makefile ${NAME}.1 \
46 ${NAME}.c arg.h ${NAME}-${VERSION}
47 tar cf - ${NAME}-${VERSION} | \
48 gzip -c > "${NAME}-${VERSION}.tar.gz"
49 rm -rf "${NAME}-${VERSION}"
50
51 .PHONY: all 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.