contrib/Makefile.am: don't simplify what you don't understand
This was totally screwed under a 'make distcheck' invocation. Bring it
inline with what we have (and what works!) in scripts/Makefile.am. This
was broken/introduced in commit 05f0a28932
.
Signed-off-by: Dan McGee <dan@archlinux.org>
This commit is contained in:
parent
9ae6ee0f09
commit
656b470163
1 changed files with 17 additions and 7 deletions
|
@ -1,11 +1,13 @@
|
||||||
OURFILES = \
|
OURSCRIPTS = \
|
||||||
bacman \
|
bacman \
|
||||||
bash_completion \
|
|
||||||
pacdiff \
|
pacdiff \
|
||||||
paclist \
|
paclist \
|
||||||
pacscripts \
|
pacscripts \
|
||||||
pacsearch \
|
pacsearch \
|
||||||
wget-xdelta.sh \
|
wget-xdelta.sh
|
||||||
|
|
||||||
|
OURFILES = \
|
||||||
|
bash_completion \
|
||||||
zsh_completion
|
zsh_completion
|
||||||
|
|
||||||
EXTRA_DIST = \
|
EXTRA_DIST = \
|
||||||
|
@ -22,21 +24,29 @@ EXTRA_DIST = \
|
||||||
README
|
README
|
||||||
|
|
||||||
# Files that should be removed, but which Automake does not know.
|
# Files that should be removed, but which Automake does not know.
|
||||||
MOSTLYCLEANFILES = $(OURFILES) *.tmp
|
MOSTLYCLEANFILES = $(OURSCRIPTS) $(OURFILES) *.tmp
|
||||||
|
|
||||||
edit = sed \
|
edit = sed \
|
||||||
-e 's|@sysconfdir[@]|$(sysconfdir)|g' \
|
-e 's|@sysconfdir[@]|$(sysconfdir)|g' \
|
||||||
-e 's|@localstatedir[@]|$(localstatedir)|g' \
|
-e 's|@localstatedir[@]|$(localstatedir)|g' \
|
||||||
-e 's|@BASH_SHELL[@]|$(BASH_SHELL)|g'
|
-e 's|@BASH_SHELL[@]|$(BASH_SHELL)|g'
|
||||||
|
|
||||||
|
$(OURSCRIPTS): Makefile
|
||||||
|
@echo ' ' GEN $@;
|
||||||
|
@rm -f $@ $@.tmp
|
||||||
|
@$(edit) $(srcdir)/$@.in >$@.tmp
|
||||||
|
@chmod +x $@.tmp
|
||||||
|
@chmod a-w $@.tmp
|
||||||
|
@mv $@.tmp $@
|
||||||
|
|
||||||
$(OURFILES): Makefile
|
$(OURFILES): Makefile
|
||||||
@echo ' ' GEN $@;
|
@echo ' ' GEN $@;
|
||||||
@rm -f $@ $@.tmp
|
@rm -f $@ $@.tmp
|
||||||
@cp -a $@.in $@.tmp
|
@$(edit) $(srcdir)/$@.in >$@.tmp
|
||||||
@$(edit) $@.in >$@.tmp
|
@chmod a-w $@.tmp
|
||||||
@mv $@.tmp $@
|
@mv $@.tmp $@
|
||||||
|
|
||||||
all-am: $(OURFILES)
|
all-am: $(OURSCRIPTS) $(OURFILES)
|
||||||
|
|
||||||
bacman: $(srcdir)/bacman.in
|
bacman: $(srcdir)/bacman.in
|
||||||
bash_completion: $(srcdir)/bash_completion.in
|
bash_completion: $(srcdir)/bash_completion.in
|
||||||
|
|
Loading…
Add table
Reference in a new issue