+2013-01-02 Niels Möller <nisse@lysator.liu.se>
+
+ * examples/Makefile.in: Explicit rules for building objects in
+ parent directory.
+ * tools/Makefile.in: Likewise.
+ * testsuite/Makefile.in: Likewise.
+
2013-01-01 Niels Möller <nisse@lysator.liu.se>
* nettle.texinfo (Recommended hash functions): Document additional
.c.$(OBJEXT):
$(COMPILE) -c $< && $(DEP_PROCESS)
-$(getopt_OBJS) ../nettle-internal.$(OBJEXT):
- ( cd .. && $(MAKE) $@ )
+# NOTE: If we required GNU make, we could use a single rule with $(@F)
+# or $(notdir $@)
+../getopt.$(OBJEXT):
+ ( cd .. && $(MAKE) getopt.$(OBJEXT))
+../getopt1.$(OBJEXT):
+ ( cd .. && $(MAKE) getopt1.$(OBJEXT))
+../nettle-internal.$(OBJEXT):
+ ( cd .. && $(MAKE) nettle-internal.$(OBJEXT))
# For Solaris and BSD make, we have to use an explicit rule for each executable
next-prime$(EXEEXT): next-prime.$(OBJEXT) $(GETOPT_OBJS) ../libhogweed.a
$(LIB_HOGWEED) -lnettle $(LIBS)
../nettle-internal.$(OBJEXT):
- ( cd .. && $(MAKE) $@ )
+ ( cd .. && $(MAKE) nettle-internal.$(OBJEXT) )
.PHONY: test-rules
test-rules:
.c.$(OBJEXT):
$(COMPILE) -c $< && $(DEP_PROCESS)
-$(getopt_OBJS):
- ( cd .. && $(MAKE) $@ )
+# NOTE: If we required GNU make, we could use a single rule with $(@F)
+# or $(notdir $@)
+../getopt.$(OBJEXT):
+ ( cd .. && $(MAKE) getopt.$(OBJEXT))
+../getopt1.$(OBJEXT):
+ ( cd .. && $(MAKE) getopt1.$(OBJEXT))
Makefile: $(srcdir)/Makefile.in ../config.status
cd .. && $(SHELL) ./config.status tools/$@