Add fallback rule to explain missing .c file
This commit is contained in:
parent
84fb2fa41e
commit
afa10ee1f1
|
@ -44,7 +44,16 @@ $(LIBFILE): $(OBJS) $(WRAPOBJ)
|
||||||
clean:
|
clean:
|
||||||
rm -f $(OBJS) $(WRAPOBJ) $(WRAPSRC) $(LIBFILE) *.o
|
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):
|
$(WRAPSRC):
|
||||||
./mkwrapper $(OBJS) > $@
|
./mkwrapper $(OBJS) > $@
|
||||||
|
|
||||||
.PHONY: $(LIBFILE)
|
.PHONY: $(LIBFILE)
|
||||||
|
|
||||||
|
.SUFFIXES:
|
||||||
|
|
Loading…
Reference in New Issue