From afa10ee1f11896fe4922d6a8b9261a42ec844e38 Mon Sep 17 00:00:00 2001 From: Stefan `Sec` Zehl Date: Sat, 21 May 2011 18:54:02 +0200 Subject: [PATCH] Add fallback rule to explain missing .c file --- modules/Makefile | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/modules/Makefile b/modules/Makefile index 8763a54..82a3943 100644 --- a/modules/Makefile +++ b/modules/Makefile @@ -44,7 +44,16 @@ $(LIBFILE): $(OBJS) $(WRAPOBJ) clean: rm -f $(OBJS) $(WRAPOBJ) $(WRAPSRC) $(LIBFILE) *.o +%.c: + @echo + @echo "You need to create $@ first" + @echo "It should contain a single function void module_filename(void)" + @echo + @exit 1 + $(WRAPSRC): ./mkwrapper $(OBJS) > $@ .PHONY: $(LIBFILE) + +.SUFFIXES: