1 # surf - simple browser
2 # See LICENSE file for copyright and license details.
12 @echo surf build options:
13 @echo "CFLAGS = ${CFLAGS}"
14 @echo "LDFLAGS = ${LDFLAGS}"
19 @${CC} -c ${CFLAGS} $<
25 @${CC} -o $@ ${OBJ} ${LDFLAGS}
29 @rm -f surf ${OBJ} surf-${VERSION}.tar.gz
32 @echo creating dist tarball
33 @mkdir -p surf-${VERSION}
34 @cp -R LICENSE Makefile README config.def.h config.mk \
35 surf.1 ${SRC} surf-${VERSION}
36 @tar -cf surf-${VERSION}.tar surf-${VERSION}
37 @gzip surf-${VERSION}.tar
38 @rm -rf surf-${VERSION}
41 @echo installing executable file to ${DESTDIR}${PREFIX}/bin
42 @mkdir -p ${DESTDIR}${PREFIX}/bin
43 @cp -f surf ${DESTDIR}${PREFIX}/bin
44 @chmod 755 ${DESTDIR}${PREFIX}/bin/surf
45 @echo installing manual page to ${DESTDIR}${MANPREFIX}/man1
46 @mkdir -p ${DESTDIR}${MANPREFIX}/man1
47 @sed "s/VERSION/${VERSION}/g" < surf.1 > ${DESTDIR}${MANPREFIX}/man1/surf.1
48 @chmod 644 ${DESTDIR}${MANPREFIX}/man1/surf.1
51 @echo removing executable file from ${DESTDIR}${PREFIX}/bin
52 @rm -f ${DESTDIR}${PREFIX}/bin/surf
53 @echo removing manual page from ${DESTDIR}${MANPREFIX}/man1
54 @rm -f ${DESTDIR}${MANPREFIX}/man1/surf.1
56 .PHONY: all options clean dist install uninstall