X-Git-Url: https://git.xinqibao.xyz/slock.git/blobdiff_plain/34f5edb29e3947d105235c1fc07be57eda5adeb5..c28ac1ebf16e5d10a8e0416065e7e3980be1ca5c:/Makefile diff --git a/Makefile b/Makefile index 2bea555..1017ac2 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 $@ slock: ${OBJ} @echo CC -o $@ @@ -31,7 +35,7 @@ clean: dist: clean @echo creating dist tarball @mkdir -p slock-${VERSION} - @cp -R LICENSE Makefile README config.mk ${SRC} slock-${VERSION} + @cp -R LICENSE Makefile README config.def.h config.mk ${SRC} slock-${VERSION} @tar -cf slock-${VERSION}.tar slock-${VERSION} @gzip slock-${VERSION}.tar @rm -rf slock-${VERSION}