diff options
author | Aaron Ball <nullspoon@oper.io> | 2022-04-14 17:48:15 -0600 |
---|---|---|
committer | Aaron Ball <nullspoon@oper.io> | 2022-04-14 17:48:15 -0600 |
commit | 9c8ca4daaaa6a163cbb559643254e6404be8bcd3 (patch) | |
tree | 29084ec84c3ad7be231ce67301a929d4377ac413 /Makefile | |
download | dailyjournal-9c8ca4daaaa6a163cbb559643254e6404be8bcd3.tar.gz dailyjournal-9c8ca4daaaa6a163cbb559643254e6404be8bcd3.tar.xz |
Initial commit of source, readme, template, and license
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 |