rm Makefile (using build.zig)
This commit is contained in:
parent
82a20c4b87
commit
72738c751a
1 changed files with 0 additions and 39 deletions
39
Makefile
39
Makefile
|
@ -1,39 +0,0 @@
|
|||
.POSIX:
|
||||
.SUFFIXES:
|
||||
|
||||
CC=cc
|
||||
CFLAGS=-W -O
|
||||
|
||||
LDFLAGS=
|
||||
LDLIBS=
|
||||
|
||||
PREFIX=/usr/local
|
||||
|
||||
SRC = src/journal/main.o \
|
||||
src/journal/journal.o
|
||||
|
||||
all: ensure_bin journal
|
||||
|
||||
ensure_bin:
|
||||
mkdir -p bin
|
||||
|
||||
install: journal
|
||||
mkdir -p $(DESTDIR)$(PREFIX)/bin
|
||||
cp -f bin/journal $(DESTDIR)$(PREFIX)/bin
|
||||
|
||||
uninstall:
|
||||
rm $(DESTDIR)$(PREFIX)/bin/journal
|
||||
|
||||
# currently we only have one journal util, others may come later
|
||||
journal: $(SRC)
|
||||
$(CC) $(LDFLAGS) -o bin/journal $(SRC) $(LDLIBS)
|
||||
|
||||
src/journal/journal.o: src/journal/journal.c
|
||||
src/journal/main.o: src/journal/main.c
|
||||
|
||||
clean:
|
||||
rm bin/journal src/journal/*.o
|
||||
|
||||
.SUFFIXES: .c .o
|
||||
.c.o:
|
||||
$(CC) $(CFLAGS) -c $< -o $@
|
Loading…
Reference in a new issue