+$(PKG_BUILD_DIR)/.configured:
+ touch $@
+
+$(PKG_BUILD_DIR)/.built:
+ rm -rf $(PKG_INSTALL_DIR)
+ mkdir -p $(PKG_INSTALL_DIR)
+ (cd $(PKG_BUILD_DIR)/source ; rm -rf config.{cache,status} ; \
+ ./configure \
+ --program-prefix="" \
+ --program-suffix="" \
+ --prefix=/usr \
+ --exec-prefix=/usr \
+ --bindir=/usr/bin \
+ --datadir=/usr/share \
+ --includedir=/usr/include \
+ --infodir=/usr/share/info \
+ --libdir=/usr/lib \
+ --libexecdir=/usr/lib \
+ --localstatedir=/var/log/samba \
+ --mandir=/usr/share/man \
+ --sbindir=/usr/sbin \
+ --sysconfdir=/etc/samba \
+ $(DISABLE_LARGEFILE) \
+ $(DISABLE_NLS) \
+ --with-lockdir=/var/run/samba \
+ --with-privatedir=/etc/samba \
+ );
+ $(MAKE) -C $(PKG_BUILD_DIR)/source \
+ bin/make_smbcodepage bin/make_unicodemap
+ (cd $(PKG_BUILD_DIR)/source/bin ; \
+ mv -f make_smbcodepage make_smbcodepage.old ; \
+ mv -f make_unicodemap make_unicodemap.old ; \
+ );
+
+ $(MAKE) -C $(PKG_BUILD_DIR)/source \
+ clean
+
+ (cd $(PKG_BUILD_DIR)/source; rm -rf config.{cache,status}; \