Skip to content
Browse files

Makefile: clean target; use built-in rules

  • Loading branch information...
1 parent eea4ccd commit 8f0801490f47476ffd0eeebe270eba68949b3d67 @ChrisJohnsen committed Mar 25, 2011
Showing with 11 additions and 3 deletions.
  1. +11 −3 Makefile
View
14 Makefile
@@ -1,5 +1,13 @@
-all: test user-session-wrapper
+MSG_BINARIES = test user-session-wrapper
+MSG_OBJECTS = $(MSG_BINARIES:%=%.o) msg.o
-user-session-wrapper: user-session-wrapper.o msg.o
+OBJECTS = $(MSG_OBJECTS)
+BINARIES = $(MSG_BINARIES)
-test: test.o msg.o
+all: $(BINARIES)
+
+$(MSG_BINARIES): msg.o
+$(MSG_OBJECTS): msg.h
+
+clean:
+ rm -f $(BINARIES) $(OBJECTS)

0 comments on commit 8f08014

Please sign in to comment.
Something went wrong with that request. Please try again.