diff options
author | Christian Hesse <mail@eworm.de> | 2015-06-23 12:22:53 +0200 |
---|---|---|
committer | Christian Hesse <mail@eworm.de> | 2015-06-23 12:22:53 +0200 |
commit | 011989fbb773a1568be6d8609fb821ea8e62fb0f (patch) | |
tree | 74015b49d0d7c7d9a65df2c3242f6477aab207fe /Makefile | |
parent | 37fbb9fa23885064df9f2fa92c0308184cab4fda (diff) | |
download | journal-notify-011989fbb773a1568be6d8609fb821ea8e62fb0f.tar.gz journal-notify-011989fbb773a1568be6d8609fb821ea8e62fb0f.tar.zst |
introduce config.h
Diffstat (limited to 'Makefile')
-rw-r--r-- | Makefile | 14 |
1 files changed, 10 insertions, 4 deletions
@@ -14,14 +14,17 @@ VERSION := 0.0.8 all: journal-notify README.html +journal-notify: journal-notify.c journal-notify.h config.h version.h + $(CC) $(CFLAGS) -o journal-notify journal-notify.c + +config.h: + $(CP) config.def.h config.h + version.h: $(wildcard .git/HEAD .git/index .git/refs/tags/*) Makefile echo "#ifndef VERSION" > $@ echo "#define VERSION \"$(shell git describe --tags --long 2>/dev/null || echo ${VERSION})\"" >> $@ echo "#endif" >> $@ -journal-notify: journal-notify.c journal-notify.h version.h - $(CC) $(CFLAGS) -o journal-notify journal-notify.c - README.html: README.md $(MD) README.md > README.html @@ -42,7 +45,10 @@ install-doc: README.html $(INSTALL) -D -m0644 screenshot.png $(DESTDIR)/usr/share/doc/journal-notify/screenshot.png clean: - rm -f *.o *~ README.html journal-notify + $(RM) -f *.o *~ README.html journal-notify version.h + +distclean: + $(RM) -f *.o *~ README.html journal-notify version.h config.h release: git archive --format=tar.xz --prefix=journal-notify-$(VERSION)/ $(VERSION) > journal-notify-$(VERSION).tar.xz |