aboutsummaryrefslogtreecommitdiffstats
path: root/Makefile
diff options
context:
space:
mode:
authorlostd <lostd@2f30.org>2014-10-21 22:58:46 +0300
committerlostd <lostd@2f30.org>2014-10-21 22:58:46 +0300
commit8e0f853f20768fba32654a816da86c2691a54bcd (patch)
tree2e0771e5bc521a31664ec04afcf038879e92b0fa /Makefile
parentef11c024b9187f3b0317c5be304d8a62e2a5ed41 (diff)
downloadnoice-8e0f853f20768fba32654a816da86c2691a54bcd.tar.gz
Still use some of the implicit magic
Diffstat (limited to 'Makefile')
-rw-r--r--Makefile18
1 files changed, 8 insertions, 10 deletions
diff --git a/Makefile b/Makefile
index 4146a77..5648b57 100644
--- a/Makefile
+++ b/Makefile
@@ -7,18 +7,11 @@ BIN = noice
all: $(BIN)
-$(BIN): config.h $(OBJ)
+$(BIN): $(OBJ)
$(CC) $(CFLAGS) -o $@ $(OBJ) $(LDLIBS)
-config.h:
- @echo copying config.def.h to $@
- @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
+noice.o: queue.h util.h config.h
+strlcpy.o: util.h
install: all
@echo installing $(BIN) to $(DESTDIR)$(PREFIX)/bin
@@ -32,3 +25,8 @@ uninstall:
clean:
rm -f $(BIN) $(OBJ)
+
+.SUFFIXES: .def.h
+
+.def.h.h:
+ cp $< $@
Un proyecto texto-plano.xyz