mirror of
https://github.com/moparisthebest/pacman
synced 2025-03-03 10:51:47 -05:00

This converts our script generation to use the built-in AM_V_GEN macro, which honors the V= setting passed to make and allows one to see the full command if they truly desire. The AM_V_at macro is also used in place of an explicit @ so verbose-mode compiles show all commands being run. We can also use these two macros in doc generation to quiet it down to the level we expect. Other minor changes: * a pointless test call is removed in test/pacman/tests/ * sed is used instead of dos2unix as we depend on it anyway * consecutive chmod calls are reduced to a single call (e.g., '+x,a-x') Signed-off-by: Dan McGee <dan@archlinux.org>
63 lines
1.3 KiB
Makefile
63 lines
1.3 KiB
Makefile
OURSCRIPTS = \
|
|
bacman \
|
|
paccache \
|
|
pacdiff \
|
|
paclist \
|
|
paclog-pkglist \
|
|
pacscripts \
|
|
pacsearch
|
|
|
|
OURFILES = \
|
|
bash_completion \
|
|
zsh_completion
|
|
|
|
EXTRA_DIST = \
|
|
PKGBUILD.vim \
|
|
bacman.in \
|
|
bash_completion.in \
|
|
paccache.in \
|
|
paclog-pkglist.in \
|
|
pacdiff.in \
|
|
paclist.in \
|
|
pacscripts.in \
|
|
pacsearch.in \
|
|
vimprojects \
|
|
zsh_completion.in \
|
|
README
|
|
|
|
# Files that should be removed, but which Automake does not know.
|
|
MOSTLYCLEANFILES = $(OURSCRIPTS) $(OURFILES) *.tmp
|
|
|
|
edit = sed \
|
|
-e 's|@sysconfdir[@]|$(sysconfdir)|g' \
|
|
-e 's|@localstatedir[@]|$(localstatedir)|g' \
|
|
-e 's|@SIZECMD[@]|$(SIZECMD)|g' \
|
|
-e '1s|!/bin/bash|!$(BASH_SHELL)|g'
|
|
|
|
$(OURSCRIPTS): Makefile
|
|
$(AM_V_at)$(RM) $@ $@.tmp
|
|
$(AM_V_GEN)$(edit) $(srcdir)/$@.in >$@.tmp
|
|
$(AM_V_at)chmod +x,a-w $@.tmp
|
|
$(AM_V_at)mv $@.tmp $@
|
|
|
|
$(OURFILES): Makefile
|
|
$(AM_V_at)$(RM) $@ $@.tmp
|
|
$(AM_V_GEN)$(edit) $(srcdir)/$@.in >$@.tmp
|
|
$(AM_V_at)chmod a-w $@.tmp
|
|
$(AM_V_at)mv $@.tmp $@
|
|
|
|
all-am: $(OURSCRIPTS) $(OURFILES)
|
|
|
|
bacman: $(srcdir)/bacman.in
|
|
bash_completion: $(srcdir)/bash_completion.in
|
|
paccache: $(srcdir)/paccache.in
|
|
pacdiff: $(srcdir)/pacdiff.in
|
|
paclist: $(srcdir)/paclist.in
|
|
paclog-pkglist: $(srcdir)/paclog-pkglist.in
|
|
pacscripts: $(srcdir)/pacscripts.in
|
|
pacsearch: $(srcdir)/pacsearch.in
|
|
pactree: $(srcdir)/pactree.in
|
|
zsh_completion: $(srcdir)/zsh_completion.in
|
|
|
|
# vim:set ts=2 sw=2 noet:
|