mirror of
https://github.com/moparisthebest/pacman
synced 2024-11-14 05:15:11 -05:00
5fe41df8a9
The newly added variables STRIP_BINARIES, STRIP_SHARED and STRIP_STATIC, that are set in makepkg.conf, specify the strip options used on binaries and shared and static libraries. In addition, files are now stripped more aggressively by default. Implements FS#13592 the way it was suggested by Allan in the comments. Signed-off-by: Cedric Staniewski <cedric@gmx.ca> Signed-off-by: Allan McRae <allan@archlinux.org> Signed-off-by: Dan McGee <dan@archlinux.org>
35 lines
1.1 KiB
Makefile
35 lines
1.1 KiB
Makefile
dist_sysconf_DATA = makepkg.conf pacman.conf
|
|
EXTRA_DIST = makepkg.conf.in pacman.conf.in
|
|
|
|
# Files that should be removed, but which Automake does not know.
|
|
MOSTLYCLEANFILES = $(dist_sysconf_DATA)
|
|
|
|
#### Taken from the autoconf scripts Makefile.am ####
|
|
edit = sed \
|
|
-e 's|@sysconfdir[@]|$(sysconfdir)|g' \
|
|
-e 's|@localstatedir[@]|$(localstatedir)|g' \
|
|
-e 's|@prefix[@]|$(prefix)|g' \
|
|
-e 's|@PACKAGE_VERSION[@]|$(PACKAGE_VERSION)|g' \
|
|
-e 's|@PACKAGE_NAME[@]|$(PACKAGE_NAME)|g' \
|
|
-e 's|@PKGEXT[@]|$(PKGEXT)|g' \
|
|
-e 's|@SRCEXT[@]|$(SRCEXT)|g' \
|
|
-e 's|@STRIP_BINARIES[@]|$(STRIP_BINARIES)|g' \
|
|
-e 's|@STRIP_SHARED[@]|$(STRIP_SHARED)|g' \
|
|
-e 's|@STRIP_STATIC[@]|$(STRIP_STATIC)|g' \
|
|
-e 's|@CARCH[@]|$(CARCH)|g' \
|
|
-e 's|@CHOST[@]|$(CHOST)|g' \
|
|
-e 's|@ARCHSWITCH[@]|$(ARCHSWITCH)|g' \
|
|
-e 's|@CARCHFLAGS[@]|$(CARCHFLAGS)|g' \
|
|
-e 's|@ROOTDIR[@]|$(ROOTDIR)|g'
|
|
|
|
$(dist_sysconf_DATA): Makefile
|
|
@echo ' ' GEN $@;
|
|
@rm -f $@ $@.tmp
|
|
@$(edit) `test -f ./$@.in || echo $(srcdir)/`$@.in >$@.tmp
|
|
@mv $@.tmp $@
|
|
|
|
makepkg.conf: $(srcdir)/makepkg.conf.in
|
|
pacman.conf: $(srcdir)/pacman.conf.in
|
|
|
|
# vim:set ts=2 sw=2 noet:
|