automake: minor cleanup
authorPeter Korsgaard <jacmet@sunsite.dk>
Mon, 16 Mar 2009 15:48:35 +0000 (15:48 -0000)
committerPeter Korsgaard <jacmet@sunsite.dk>
Mon, 16 Mar 2009 15:48:35 +0000 (15:48 -0000)
package/automake/automake.mk

index 057579ab67f58544a6a32fac81a98f97a52c0e44..2bf2bccb36558b66b5e79fc4abd3ee3a352cc8e8 100644 (file)
@@ -104,8 +104,8 @@ automake-dirclean:
 #############################################################
 
 $(AUTOMAKE_HOST_DIR)/.configured: $(AUTOMAKE_SRC_DIR)/.unpacked $(AUTOCONF)
-       mkdir -p $(AUTOMAKE_HOST_DIR)
-       (cd $(AUTOMAKE_HOST_DIR); rm -rf config.cache; \
+       mkdir -p $(@D)
+       (cd $(@D); rm -rf config.cache; \
                $(HOST_CONFIGURE_OPTS) \
                CFLAGS="$(HOST_CFLAGS)" \
                LDFLAGS="$(HOST_LDFLAGS)" \
@@ -116,7 +116,7 @@ $(AUTOMAKE_HOST_DIR)/.configured: $(AUTOMAKE_SRC_DIR)/.unpacked $(AUTOCONF)
        touch $@
 
 $(AUTOMAKE_HOST_DIR)/$(AUTOMAKE_BINARY): $(AUTOMAKE_HOST_DIR)/.configured
-       $(MAKE) -C $(AUTOMAKE_HOST_DIR)
+       $(MAKE) -C $(@D)
        touch -c $@
 
 $(AUTOMAKE): $(AUTOMAKE_HOST_DIR)/$(AUTOMAKE_BINARY)