Introduction
Introduction Statistics Contact Development Disclaimer Help
Makefile: some tweaks - hurl - Gopher/HTTP/HTTPS file grabber
git clone git://git.codemadness.org/hurl
Log
Files
Refs
README
LICENSE
---
commit 3c7441b9985fcdce9555ea2034284420712fafa0
parent cf1cb9bbf57c7721b94100585fa1ae7fbe113164
Author: Hiltjo Posthuma <[email protected]>
Date: Mon, 12 Nov 2018 20:34:35 +0100
Makefile: some tweaks
Diffstat:
M Makefile | 52 +++++++++++++----------------…
1 file changed, 22 insertions(+), 30 deletions(-)
---
diff --git a/Makefile b/Makefile
@@ -1,5 +1,5 @@
-# hurl – a tiny client for various protocols
-# See LICENSE file for copyright and licence details.
+# hurl - a tiny client for various protocols
+# See LICENSE file for copyright and license details.
.POSIX:
NAME = hurl
@@ -11,12 +11,12 @@ MANDIR = ${PREFIX}/share/man/man1
CFLAGS = -O2 -Wall
HURL_CFLAGS = -I. -I/usr/include ${CFLAGS}
-HURL_LDFLAGS = -L/usr/lib -L. ${LDFLAGS}
+HURL_LDFLAGS = -L/usr/lib -L. -ltls ${LDFLAGS}
SRC = hurl.c
OBJ = ${SRC:.c=.o}
-all: options ${NAME}
+all: ${NAME}
options:
@echo ${NAME} build options:
@@ -25,46 +25,38 @@ options:
@echo "CC = ${CC}"
.c.o:
- @echo CC $<
- @${CC} ${HURL_CFLAGS} -c $<
+ ${CC} ${HURL_CFLAGS} -c $<
${OBJ}:
${NAME}: ${OBJ}
- @echo CC -o $@
- @${CC} -o $@ ${OBJ} ${HURL_LDFLAGS}
+ ${CC} -o $@ ${OBJ} ${HURL_LDFLAGS}
clean:
- @echo cleaning
- @rm -f ${NAME} ${OBJ} ${NAME}-${VERSION}.tar.gz
+ rm -f ${NAME} ${OBJ} ${NAME}-${VERSION}.tar.gz
install: all
- @echo installing executable to ${DESTDIR}${BINDIR}
- @mkdir -p "${DESTDIR}${BINDIR}"
- @cp -f ${NAME} "${DESTDIR}${BINDIR}"
- @chmod 755 "${DESTDIR}${BINDIR}/${NAME}"
+ mkdir -p "${DESTDIR}${BINDIR}"
+ cp -f ${NAME} "${DESTDIR}${BINDIR}"
+ chmod 755 "${DESTDIR}${BINDIR}/${NAME}"
# For later manpage.
-# @echo installing manpage to "${DESTDIR}${MANDIR}"
-# @mkdir -p "${DESTDIR}${MANDIR}"
-# @cp -f ${NAME}.1 "${DESTDIR}${MANDIR}"
-# @chmod 644 "${DESTDIR}${MANDIR}/${NAME}.1"
+# mkdir -p "${DESTDIR}${MANDIR}"
+# cp -f ${NAME}.1 "${DESTDIR}${MANDIR}"
+# chmod 644 "${DESTDIR}${MANDIR}/${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}/${NAME}.1"
+ rm -f "${DESTDIR}${BINDIR}/${NAME}"
+# rm -f "${DESTDIR}${MANDIR}/${NAME}.1"
dist: clean
- @echo creating dist tarball
- @mkdir -p ${NAME}-${VERSION}
-# @cp -R README LICENSE Makefile ${NAME}.1 \
+ mkdir -p ${NAME}-${VERSION}
+# cp -R README LICENSE Makefile ${NAME}.1 \
# *.c *.h ${NAME}-${VERSION}
- @cp -R README LICENSE Makefile \
+ cp -R README LICENSE Makefile \
*.c *.h ${NAME}-${VERSION}
- @tar -cf ${NAME}-${VERSION}.tar ${NAME}-${VERSION}
- @gzip ${NAME}-${VERSION}.tar
- @mv ${NAME}-${VERSION}.tar.gz ${NAME}-${VERSION}.tgz
- @rm -rf "${NAME}-${VERSION}"
+ tar -cf ${NAME}-${VERSION}.tar ${NAME}-${VERSION}
+ gzip ${NAME}-${VERSION}.tar
+ mv ${NAME}-${VERSION}.tar.gz ${NAME}-${VERSION}.tgz
+ rm -rf "${NAME}-${VERSION}"
.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.