X-Git-Url: https://git.danieliu.xyz/?a=blobdiff_plain;f=Makefile;h=b98d311c54f247a2c0457283e6cbeb11512b5802;hb=d44bfb2c314c7aa8c734dd1ecb5b3a0c7566a700;hp=6dc19fa5b03376c10e205e888e38562808a1f231;hpb=b6e181e82acc2f20085410f720b8ceeed8a8cbe3;p=surf.git diff --git a/Makefile b/Makefile index 6dc19fa..b98d311 100644 --- a/Makefile +++ b/Makefile @@ -18,7 +18,11 @@ 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 $@ @@ -31,7 +35,7 @@ clean: dist: clean @echo creating dist tarball @mkdir -p surf-${VERSION} - @cp -R LICENSE Makefile README config.mk \ + @cp -R LICENSE Makefile config.mk config.def.h README \ surf.1 ${SRC} surf-${VERSION} @tar -cf surf-${VERSION}.tar surf-${VERSION} @gzip surf-${VERSION}.tar