$(LIBDRM_DIR)/.unpacked: $(DL_DIR)/$(LIBDRM_SOURCE)
$(LIBDRM_CAT) $(DL_DIR)/$(LIBDRM_SOURCE) | tar -C $(BUILD_DIR) $(TAR_OPTIONS) -
- touch $(LIBDRM_DIR)/.unpacked
+ touch $@
$(LIBDRM_DIR)/.configured: $(LIBDRM_DIR)/.unpacked
- (cd $(LIBDRM_DIR); \
+ (cd $(LIBDRM_DIR); rm -f config.cache; \
$(TARGET_CONFIGURE_OPTS) \
CFLAGS="$(TARGET_CFLAGS) " \
LDFLAGS="$(TARGET_LDFLAGS)" \
--sysconfdir=/etc \
--datadir=/usr/share \
--localstatedir=/var \
- --includedir=/include \
+ --includedir=/usr/include \
--mandir=/usr/man \
--infodir=/usr/info \
)
- touch $(LIBDRM_DIR)/.configured
+ touch $@
$(LIBDRM_DIR)/.compiled: $(LIBDRM_DIR)/.configured
$(MAKE) CCexe="$(HOSTCC)" -C $(LIBDRM_DIR)