suckless-quark/Makefile
FRIGN cd2893965f Stop hiding what we're doing in the Makefile
On Gentoo for instance they are literally stripping the @'s from our
Makefiles to make the output usable. It makes sense to remove this
abstraction.
2016-09-02 10:49:42 +02:00

39 lines
905 B
Makefile

# quark - simple web server
include config.mk
all: quark
quark: quark.o config.h config.mk
${CC} -o $@ quark.o ${LDFLAGS}
quark.o: quark.c config.h config.mk
${CC} -c ${CFLAGS} quark.c
config.h:
cp config.def.h $@
clean:
rm -f quark quark.o quark-${VERSION}.tar.gz
dist: clean
mkdir -p quark-${VERSION}
cp -R LICENSE Makefile arg.h config.def.h config.mk quark.1 \
quark.c quark-${VERSION}
tar -cf quark-${VERSION}.tar quark-${VERSION}
gzip quark-${VERSION}.tar
rm -rf quark-${VERSION}
install: all
mkdir -p ${DESTDIR}${PREFIX}/bin
cp -f quark ${DESTDIR}${PREFIX}/bin
chmod 755 ${DESTDIR}${PREFIX}/bin/quark
mkdir -p ${DESTDIR}${MANPREFIX}/man1
cp quark.1 ${DESTDIR}${MANPREFIX}/man1/quark.1
chmod 644 ${DESTDIR}${MANPREFIX}/man1/quark.1
uninstall:
rm -f ${DESTDIR}${PREFIX}/bin/quark
rm -f ${DESTDIR}${MANPREFIX}/man1/quark.1
.PHONY: all options clean dist install uninstall