X-Git-Url: https://git.danieliu.xyz/?a=blobdiff_plain;f=Makefile;h=b98d311c54f247a2c0457283e6cbeb11512b5802;hb=6cd54e4a3119bd201d95f5d67ffb4bfe28aac653;hp=b1836037a03b0a95ee78fad9c5f3f32d538414a6;hpb=ad005db13f571dabb72fce448eb0d93f79acf97d;p=surf.git diff --git a/Makefile b/Makefile index b183603..b98d311 100644 --- a/Makefile +++ b/Makefile @@ -3,10 +3,10 @@ include config.mk -SRC = surf.c tabbed.c +SRC = surf.c OBJ = ${SRC:.c=.o} -all: options surf tabbed +all: options surf options: @echo surf build options: @@ -18,14 +18,16 @@ options: @echo CC $< @${CC} -c ${CFLAGS} $< -${OBJ}: config.mk +${OBJ}: config.h config.mk -surf: surf.o +config.h: + @echo creating $@ from config.def.h + @cp config.def.h $@ + +surf: ${OBJ} @echo CC -o $@ @${CC} -o $@ surf.o ${LDFLAGS} -tabbed: tabbed.o - clean: @echo cleaning @rm -f surf ${OBJ} surf-${VERSION}.tar.gz @@ -33,7 +35,7 @@ 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.1 ${SRC} surf-${VERSION} @tar -cf surf-${VERSION}.tar surf-${VERSION} @gzip surf-${VERSION}.tar