mirror of
https://github.com/jarun/nnn.git
synced 2024-11-28 05:41:31 +00:00
Still use some of the implicit magic
This commit is contained in:
parent
ef11c024b9
commit
8e0f853f20
18
Makefile
18
Makefile
|
@ -7,18 +7,11 @@ BIN = noice
|
||||||
|
|
||||||
all: $(BIN)
|
all: $(BIN)
|
||||||
|
|
||||||
$(BIN): config.h $(OBJ)
|
$(BIN): $(OBJ)
|
||||||
$(CC) $(CFLAGS) -o $@ $(OBJ) $(LDLIBS)
|
$(CC) $(CFLAGS) -o $@ $(OBJ) $(LDLIBS)
|
||||||
|
|
||||||
config.h:
|
noice.o: queue.h util.h config.h
|
||||||
@echo copying config.def.h to $@
|
strlcpy.o: util.h
|
||||||
@cp config.def.h $@
|
|
||||||
|
|
||||||
noice.o: noice.c queue.h util.h
|
|
||||||
$(CC) $(CFLAGS) $(CPPFLAGS) -c noice.c
|
|
||||||
|
|
||||||
strlcpy.o: strlcpy.c util.h
|
|
||||||
$(CC) $(CFLAGS) -c strlcpy.c
|
|
||||||
|
|
||||||
install: all
|
install: all
|
||||||
@echo installing $(BIN) to $(DESTDIR)$(PREFIX)/bin
|
@echo installing $(BIN) to $(DESTDIR)$(PREFIX)/bin
|
||||||
|
@ -32,3 +25,8 @@ uninstall:
|
||||||
|
|
||||||
clean:
|
clean:
|
||||||
rm -f $(BIN) $(OBJ)
|
rm -f $(BIN) $(OBJ)
|
||||||
|
|
||||||
|
.SUFFIXES: .def.h
|
||||||
|
|
||||||
|
.def.h.h:
|
||||||
|
cp $< $@
|
||||||
|
|
Loading…
Reference in a new issue