aboutsummaryrefslogtreecommitdiffstats
path: root/Makefile
diff options
context:
space:
mode:
authorMattias Andrée <maandree@kth.se>2017-12-09 17:15:54 +0100
committerMattias Andrée <maandree@kth.se>2017-12-09 17:15:54 +0100
commit29830daadc341626fdafb590a3cd4f9dc755d8b2 (patch)
tree06e35102e18ec86e6769a88fc997c39971d95064 /Makefile
parentUpdate man page (diff)
downloadvtchs-29830daadc341626fdafb590a3cd4f9dc755d8b2.tar.gz
vtchs-29830daadc341626fdafb590a3cd4f9dc755d8b2.tar.bz2
vtchs-29830daadc341626fdafb590a3cd4f9dc755d8b2.tar.xz
Fix makefile
Signed-off-by: Mattias Andrée <maandree@kth.se>
Diffstat (limited to '')
-rw-r--r--Makefile9
1 files changed, 5 insertions, 4 deletions
diff --git a/Makefile b/Makefile
index bae4d19..1176ab8 100644
--- a/Makefile
+++ b/Makefile
@@ -5,8 +5,8 @@ include $(CONFIGFILE)
all: vtchs
-.o:
- $(CC) -o $@ $^ $(LDFLAGS)
+vtchs: vtchs.o
+ $(CC) -o $@ vtchs.o $(LDFLAGS)
.c.o:
$(CC) -c -o $@ $< $(CPPFLAGS) $(CFLAGS)
@@ -25,8 +25,9 @@ uninstall:
-rm -rf -- "$(DESTDIR)$(PREFIX)/share/licenses/vtchs"
clean:
- -rm -f - vtchs *o
+ -rm -f -- vtchs *.o
-.SUFFIXES: .o .c.o
+.SUFFIXES:
+.SUFFIXES: .o .c
.PHONY: all install uninstall clean