X-Git-Url: https://git.danieliu.xyz/?a=blobdiff_plain;f=Makefile;h=3b7c757759b2a6e1a3b9e85f0b2f9e36efa1ecf8;hb=294142a806c9423ab47309c8871815e12e7c0107;hp=77a39db34c8bd6c0824b4059309a59dcb90a686e;hpb=efdd0dd584829a9db969511e487010bf2107b503;p=surf.git diff --git a/Makefile b/Makefile index 77a39db..3b7c757 100644 --- a/Makefile +++ b/Makefile @@ -18,11 +18,15 @@ options: @echo CC $< @${CC} -c ${CFLAGS} $< -${OBJ}: config.mk +${OBJ}: config.h config.mk + +config.h: + @echo creating $@ from config.def.h + @cp config.def.h $@ surf: ${OBJ} @echo CC -o $@ - @${CC} -o $@ ${OBJ} ${LDFLAGS} + @${CC} -o $@ surf.o ${LDFLAGS} clean: @echo cleaning @@ -31,7 +35,8 @@ clean: dist: clean @echo creating dist tarball @mkdir -p surf-${VERSION} - @cp -R LICENSE Makefile README config.def.h config.mk \ + @cp -R LICENSE Makefile config.mk config.def.h README \ + surf-open.sh arg.h TODO.md surf.png \ surf.1 ${SRC} surf-${VERSION} @tar -cf surf-${VERSION}.tar surf-${VERSION} @gzip surf-${VERSION}.tar @@ -42,6 +47,7 @@ install: all @mkdir -p ${DESTDIR}${PREFIX}/bin @cp -f surf ${DESTDIR}${PREFIX}/bin @chmod 755 ${DESTDIR}${PREFIX}/bin/surf + @[ -e /sbin/paxctl ] && /sbin/paxctl -m ${DESTDIR}${PREFIX}/bin/surf @echo installing manual page to ${DESTDIR}${MANPREFIX}/man1 @mkdir -p ${DESTDIR}${MANPREFIX}/man1 @sed "s/VERSION/${VERSION}/g" < surf.1 > ${DESTDIR}${MANPREFIX}/man1/surf.1