]> git.armaanb.net Git - slock.git/blobdiff - Makefile
Apply dpms patch
[slock.git] / Makefile
index 86b34377baa854267f34450f5872f953f6153ee9..f4ffbb7e0263da9d91a733611955f8fbf764d741 100644 (file)
--- a/Makefile
+++ b/Makefile
@@ -3,7 +3,7 @@
 
 include config.mk
 
-SRC = slock.c
+SRC = slock.c ${COMPATSRC}
 OBJ = ${SRC:.c=.o}
 
 all: options slock
@@ -18,7 +18,7 @@ options:
        @echo CC $<
        @${CC} -c ${CFLAGS} $<
 
-${OBJ}: config.h config.mk
+${OBJ}: config.h config.mk arg.h util.h
 
 config.h:
        @echo creating $@ from config.def.h
@@ -35,8 +35,8 @@ clean:
 dist: clean
        @echo creating dist tarball
        @mkdir -p slock-${VERSION}
-       @cp -R LICENSE Makefile README config.def.h config.mk ${SRC} slock.1 \
-               slock-${VERSION}
+       @cp -R LICENSE Makefile README slock.1 config.mk \
+               ${SRC} explicit_bzero.c config.def.h arg.h util.h slock-${VERSION}
        @tar -cf slock-${VERSION}.tar slock-${VERSION}
        @gzip slock-${VERSION}.tar
        @rm -rf slock-${VERSION}