diff options
author | Leah Neukirchen <leah@vuxu.org> | 2021-11-30 16:43:16 +0100 |
---|---|---|
committer | Leah Neukirchen <leah@vuxu.org> | 2021-11-30 16:43:23 +0100 |
commit | 35b0da9202fbfd83662a0649313b5c4b8cb97f5e (patch) | |
tree | 010712c1d1b484bee550f14024da4b8144f19dd5 | |
parent | ce65ff30c7ad249349ccc657565cdbf34c29fa61 (diff) | |
download | cwm-35b0da9202fbfd83662a0649313b5c4b8cb97f5e.tar.gz cwm-35b0da9202fbfd83662a0649313b5c4b8cb97f5e.tar.xz cwm-35b0da9202fbfd83662a0649313b5c4b8cb97f5e.zip |
Makefile: use implicit rule for yacc
Closes #15.
-rw-r--r-- | Makefile | 11 |
1 files changed, 5 insertions, 6 deletions
diff --git a/Makefile b/Makefile index b1b0580..1f56cd4 100644 --- a/Makefile +++ b/Makefile @@ -11,7 +11,7 @@ SRCS= calmwm.c screen.c xmalloc.c client.c menu.c \ OBJS= calmwm.o screen.o xmalloc.o client.o menu.o \ search.o util.o xutil.o conf.o xevents.o group.o \ - kbfunc.o strlcpy.o strlcat.o y.tab.o \ + kbfunc.o strlcpy.o strlcat.o parse.o \ strtonum.o reallocarray.o PKG_CONFIG?= pkg-config @@ -27,12 +27,9 @@ MANPREFIX?= ${PREFIX}/share/man all: ${PROG} clean: - rm -f ${OBJS} ${PROG} y.tab.c + rm -f ${OBJS} ${PROG} parse.c -y.tab.c: parse.y - yacc parse.y - -${PROG}: ${OBJS} y.tab.o +${PROG}: ${OBJS} ${CC} ${OBJS} ${LDFLAGS} -o ${PROG} .c.o: @@ -53,3 +50,5 @@ sign: gpg2 --armor --detach-sign cwm-$$VERSION.tar.gz && \ signify -S -s ~/.signify/cwm.sec -m cwm-$$VERSION.tar.gz && \ sed -i '1cuntrusted comment: verify with cwm.pub' cwm-$$VERSION.tar.gz.sig + +.PRECIOUS: parse.c |