diff options
Diffstat (limited to 'Makefile')
-rw-r--r-- | Makefile | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/Makefile b/Makefile new file mode 100644 index 0000000..ca73231 --- /dev/null +++ b/Makefile @@ -0,0 +1,10 @@ +PREFIX := /usr +CCOPTS = -Wall -Werror --std=gnu18 -O2 +.DEFAULT: build + +build: + cc $(CCOPTS) src/main.c -o dailyjournal + +install: + install -D -m 755 dailyjournal $(DESTDIR)$(PREFIX)/bin/dailyjournal + install -D -m 644 template.md $(DESTDIR)$(PREFIX)/share/dailyjournal/template.md |