This commit is contained in:
Tuxliban Torvalds 2020-11-15 09:48:27 -06:00
parent 59e0befa88
commit f87f18c5a3
1 changed files with 24 additions and 0 deletions

24
Makefile Normal file
View File

@ -0,0 +1,24 @@
CFLAGS += -std=c99 -Wall -Wextra -pedantic -D_POSIX_C_SOURCE=200809L -D_BSD_SOURCE
PREFIX = /usr/local
MANPREFIX = $(PREFIX)/man
BIN = crond
MAN = scron.1
all: $(BIN)
install: all
mkdir -p $(DESTDIR)$(PREFIX)/bin
cp -f $(BIN) $(DESTDIR)$(PREFIX)/bin/scrond
mkdir -p $(DESTDIR)$(MANPREFIX)/man1
cp -f $(MAN) $(DESTDIR)$(MANPREFIX)/man1
uninstall:
rm -f $(DESTDIR)$(PREFIX)/bin/scrond
rm -f $(DESTDIR)$(MANPREFIX)/man1/$(MAN)
clean:
rm -f $(BIN)
.PHONY:
all install uninstall clean