mirror of
git://projects.qi-hardware.com/openwrt-xburst.git
synced 2024-11-29 07:31:54 +02:00
Uniformize package Makefile, move ipkg related files to ./ipkg and patches to ./patches
git-svn-id: svn://svn.openwrt.org/openwrt/trunk@666 3c298f89-4303-0410-b956-a3cf2f4a3e73
This commit is contained in:
parent
72d1969f67
commit
b10d5eeac9
@ -24,7 +24,7 @@ $(DL_DIR)/$(PKG_SOURCE):
|
|||||||
|
|
||||||
$(PKG_BUILD_DIR)/.prepared: $(DL_DIR)/$(PKG_SOURCE)
|
$(PKG_BUILD_DIR)/.prepared: $(DL_DIR)/$(PKG_SOURCE)
|
||||||
$(PKG_CAT) $(DL_DIR)/$(PKG_SOURCE) | tar -C $(BUILD_DIR) $(TAR_OPTIONS) -
|
$(PKG_CAT) $(DL_DIR)/$(PKG_SOURCE) | tar -C $(BUILD_DIR) $(TAR_OPTIONS) -
|
||||||
$(PATCH) $(PKG_BUILD_DIR) . $(PKG_NAME).patch
|
$(PATCH) $(PKG_BUILD_DIR) ./patches
|
||||||
touch $(PKG_BUILD_DIR)/.prepared
|
touch $(PKG_BUILD_DIR)/.prepared
|
||||||
|
|
||||||
$(PKG_BUILD_DIR)/.configured: $(PKG_BUILD_DIR)/.prepared
|
$(PKG_BUILD_DIR)/.configured: $(PKG_BUILD_DIR)/.prepared
|
||||||
@ -49,9 +49,9 @@ $(STAGING_DIR)/usr/lib/libz.so: $(PKG_BUILD_DIR)/.built
|
|||||||
install
|
install
|
||||||
|
|
||||||
$(IPKG_ZLIB): $(STAGING_DIR)/usr/lib/libz.so
|
$(IPKG_ZLIB): $(STAGING_DIR)/usr/lib/libz.so
|
||||||
$(SCRIPT_DIR)/make-ipkg-dir.sh $(IDIR_ZLIB) $(PKG_NAME).control $(PKG_VERSION)-$(PKG_RELEASE) $(ARCH)
|
$(SCRIPT_DIR)/make-ipkg-dir.sh $(IDIR_ZLIB) ./ipkg/$(PKG_NAME).control $(PKG_VERSION)-$(PKG_RELEASE) $(ARCH)
|
||||||
mkdir -p $(IDIR_ZLIB)/usr/lib
|
mkdir -p $(IDIR_ZLIB)/usr/lib
|
||||||
cp -a $(STAGING_DIR)/usr/lib/libz.so.* $(IDIR_ZLIB)/usr/lib/
|
cp -fpR $(STAGING_DIR)/usr/lib/libz.so.* $(IDIR_ZLIB)/usr/lib/
|
||||||
$(STRIP) $(IDIR_ZLIB)/usr/lib/lib*.so*
|
$(STRIP) $(IDIR_ZLIB)/usr/lib/lib*.so*
|
||||||
mkdir -p $(PACKAGE_DIR)
|
mkdir -p $(PACKAGE_DIR)
|
||||||
$(IPKG_BUILD) $(IDIR_ZLIB) $(PACKAGE_DIR)
|
$(IPKG_BUILD) $(IDIR_ZLIB) $(PACKAGE_DIR)
|
||||||
@ -65,7 +65,7 @@ compile: $(IPKG_ZLIB)
|
|||||||
install: $(INFO_ZLIB)
|
install: $(INFO_ZLIB)
|
||||||
|
|
||||||
clean:
|
clean:
|
||||||
-$(MAKE) -C $(PKG_BUILD_DIR) \
|
rm -rf $(STAGING_DIR)/usr/include/z{conf,lib}.h
|
||||||
DESTDIR="$(STAGING_DIR)" \
|
rm -rf $(STAGING_DIR)/usr/lib/libz.{a,so*}
|
||||||
uninstall
|
rm -rf $(STAGING_DIR)/usr/share/man/man*/zlib.*
|
||||||
rm -rf $(PKG_BUILD_DIR) $(IPKG_ZLIB)
|
rm -rf $(PKG_BUILD_DIR) $(IPKG_ZLIB)
|
||||||
|
Loading…
Reference in New Issue
Block a user