diff options
author | Christian Neukirchen <chneukirchen@gmail.com> | 2015-11-04 17:10:15 +0100 |
---|---|---|
committer | Christian Neukirchen <chneukirchen@gmail.com> | 2015-11-04 17:10:15 +0100 |
commit | 1207a1200c402f54266db2cbc18ef11cb2fa394e (patch) | |
tree | dc540b5cc00673ae551763d05afeb7eeb2bd78fc | |
parent | a99b4704518369ebf6606b6a1a271c5cfd21bd5e (diff) |
add Makefile
-rw-r--r-- | Makefile | 19 |
1 files changed, 19 insertions, 0 deletions
diff --git a/Makefile b/Makefile new file mode 100644 index 0000000..ec491be --- /dev/null +++ b/Makefile @@ -0,0 +1,19 @@ +ALL=snooze + +CFLAGS=-g -O2 -Wall -Wextra -Wwrite-strings + +DESTDIR= +PREFIX=/usr/local +BINDIR=$(PREFIX)/bin +MANDIR=$(PREFIX)/share/man + +all: $(ALL) + +clean: FRC + rm -f $(ALL) + +install: FRC all + mkdir -p $(DESTDIR)$(BINDIR) $(DESTDIR)$(MANDIR)/man1 + install -m0755 $(ALL) $(DESTDIR)$(BINDIR) + +FRC: |