mirror of
https://github.com/motioneye-project/motioneyeos.git
synced 2025-07-27 21:26:36 +00:00
gzip: cleanup makefile
Cleanup configure args, strip executables in TARGET_DIR, install info / manpages into TARGET_DIR/usr/share/ and fixup convenience aliases (gunzip, zcat, zdiff, ..)
This commit is contained in:
parent
93b377d6e2
commit
ba3892380b
@ -30,15 +30,6 @@ $(GZIP_DIR)/.configured: $(GZIP_DIR)/.unpacked
|
|||||||
--build=$(GNU_HOST_NAME) \
|
--build=$(GNU_HOST_NAME) \
|
||||||
--prefix=/usr \
|
--prefix=/usr \
|
||||||
--exec-prefix=/ \
|
--exec-prefix=/ \
|
||||||
--bindir=/bin \
|
|
||||||
--sbindir=/bin \
|
|
||||||
--libdir=/lib \
|
|
||||||
--libexecdir=/usr/lib \
|
|
||||||
--sysconfdir=/etc \
|
|
||||||
--datadir=/usr/share/misc \
|
|
||||||
--localstatedir=/var \
|
|
||||||
--mandir=/usr/share/man \
|
|
||||||
--infodir=/usr/share/info \
|
|
||||||
$(DISABLE_NLS) \
|
$(DISABLE_NLS) \
|
||||||
$(DISABLE_LARGEFILE) \
|
$(DISABLE_LARGEFILE) \
|
||||||
)
|
)
|
||||||
@ -48,22 +39,13 @@ $(GZIP_BINARY): $(GZIP_DIR)/.configured
|
|||||||
$(MAKE) CC=$(TARGET_CC) -C $(GZIP_DIR)
|
$(MAKE) CC=$(TARGET_CC) -C $(GZIP_DIR)
|
||||||
|
|
||||||
$(GZIP_TARGET_BINARY): $(GZIP_BINARY)
|
$(GZIP_TARGET_BINARY): $(GZIP_BINARY)
|
||||||
$(MAKE) DESTDIR=$(TARGET_DIR) CC=$(TARGET_CC) -C $(GZIP_DIR) install
|
$(MAKE) DESTDIR=$(TARGET_DIR) CC=$(TARGET_CC) -C $(GZIP_DIR) install-strip
|
||||||
ifneq ($(BR2_HAVE_INFOPAGES),y)
|
ifneq ($(BR2_HAVE_INFOPAGES),y)
|
||||||
rm -rf $(TARGET_DIR)/usr/info
|
rm -rf $(TARGET_DIR)/usr/share/info
|
||||||
endif
|
endif
|
||||||
ifneq ($(BR2_HAVE_MANPAGES),y)
|
ifneq ($(BR2_HAVE_MANPAGES),y)
|
||||||
rm -rf $(TARGET_DIR)/usr/man
|
rm -rf $(TARGET_DIR)/usr/share/man
|
||||||
endif
|
endif
|
||||||
rm -rf $(TARGET_DIR)/share/locale
|
|
||||||
rm -rf $(TARGET_DIR)/usr/share/doc
|
|
||||||
(cd $(TARGET_DIR)/bin; \
|
|
||||||
$(HOSTLN) -snf gzip gunzip; \
|
|
||||||
$(HOSTLN) -snf gzip zcat; \
|
|
||||||
$(HOSTLN) -snf zdiff zcmp; \
|
|
||||||
$(HOSTLN) -snf zgrep zegrep; \
|
|
||||||
$(HOSTLN) -snf zgrep zfgrep; \
|
|
||||||
)
|
|
||||||
|
|
||||||
gzip: uclibc $(GZIP_TARGET_BINARY)
|
gzip: uclibc $(GZIP_TARGET_BINARY)
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user