X-Git-Url: https://git.danieliu.xyz/?p=surf.git;a=blobdiff_plain;f=Makefile;h=a9d4d1d49e043665e123da7258cf0bd2f32704b2;hp=b1836037a03b0a95ee78fad9c5f3f32d538414a6;hb=1abb2ebe7a90eea6e82415a07e0f2ea6e3475e5f;hpb=ad005db13f571dabb72fce448eb0d93f79acf97d diff --git a/Makefile b/Makefile index b183603..a9d4d1d 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,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