2011-12-12 16:36:57 -05:00
|
|
|
# enforce that all scripts have a --help and --version option
|
|
|
|
AUTOMAKE_OPTIONS = std-options
|
|
|
|
|
|
|
|
bin_SCRIPTS = \
|
|
|
|
$(OURSCRIPTS)
|
|
|
|
|
2012-04-19 12:46:48 -04:00
|
|
|
BASHSCRIPTS = \
|
2008-06-06 06:17:06 -04:00
|
|
|
bacman \
|
2013-03-21 17:40:32 -04:00
|
|
|
checkupdates \
|
2011-07-27 14:36:27 -04:00
|
|
|
paccache \
|
2007-02-23 03:07:48 -05:00
|
|
|
pacdiff \
|
2008-05-10 06:33:15 -04:00
|
|
|
paclist \
|
2011-07-17 11:04:03 -04:00
|
|
|
paclog-pkglist \
|
2009-03-02 13:13:08 -05:00
|
|
|
pacscripts \
|
2012-04-22 17:38:48 -04:00
|
|
|
pacsysclean \
|
2012-01-09 16:01:48 -05:00
|
|
|
rankmirrors \
|
|
|
|
updpkgsums
|
2011-03-16 11:38:35 -04:00
|
|
|
|
2012-04-19 12:46:48 -04:00
|
|
|
OTHERSCRIPTS = \
|
|
|
|
pacsearch
|
|
|
|
|
|
|
|
OURSCRIPTS = \
|
|
|
|
$(BASHSCRIPTS) \
|
|
|
|
$(OTHERSCRIPTS)
|
|
|
|
|
2011-03-16 11:38:35 -04:00
|
|
|
OURFILES = \
|
|
|
|
bash_completion \
|
2010-10-11 19:23:16 -04:00
|
|
|
zsh_completion
|
|
|
|
|
|
|
|
EXTRA_DIST = \
|
2010-10-12 09:26:50 -04:00
|
|
|
PKGBUILD.vim \
|
2012-04-19 12:55:20 -04:00
|
|
|
bacman.sh.in \
|
2010-10-11 19:23:16 -04:00
|
|
|
bash_completion.in \
|
2013-03-21 17:40:32 -04:00
|
|
|
checkupdates.sh.in \
|
2012-04-19 12:55:20 -04:00
|
|
|
paccache.sh.in \
|
|
|
|
paclog-pkglist.sh.in \
|
|
|
|
pacdiff.sh.in \
|
|
|
|
paclist.sh.in \
|
|
|
|
pacscripts.sh.in \
|
2010-10-11 19:23:16 -04:00
|
|
|
pacsearch.in \
|
2012-04-19 12:55:20 -04:00
|
|
|
pacsysclean.sh.in \
|
2013-03-09 20:22:04 -05:00
|
|
|
rankmirrors.sh.in \
|
2012-01-09 16:01:48 -05:00
|
|
|
updpkgsums.sh.in \
|
2010-10-12 09:26:50 -04:00
|
|
|
vimprojects \
|
2010-10-11 19:23:16 -04:00
|
|
|
zsh_completion.in \
|
2007-03-06 19:07:57 -05:00
|
|
|
README
|
2007-02-22 21:00:30 -05:00
|
|
|
|
2010-10-11 19:23:16 -04:00
|
|
|
# Files that should be removed, but which Automake does not know.
|
2011-03-16 11:38:35 -04:00
|
|
|
MOSTLYCLEANFILES = $(OURSCRIPTS) $(OURFILES) *.tmp
|
2010-10-11 19:23:16 -04:00
|
|
|
|
2011-12-12 16:36:57 -05:00
|
|
|
if USE_GIT_VERSION
|
|
|
|
GIT_VERSION := $(shell sh -c 'git describe --abbrev=4 --dirty | sed s/^v//')
|
|
|
|
REAL_PACKAGE_VERSION = $(GIT_VERSION)
|
|
|
|
else
|
|
|
|
REAL_PACKAGE_VERSION = $(PACKAGE_VERSION)
|
|
|
|
endif
|
|
|
|
|
2010-10-11 19:23:16 -04:00
|
|
|
edit = sed \
|
|
|
|
-e 's|@sysconfdir[@]|$(sysconfdir)|g' \
|
|
|
|
-e 's|@localstatedir[@]|$(localstatedir)|g' \
|
2011-12-12 16:36:57 -05:00
|
|
|
-e 's|@PACKAGE_VERSION[@]|$(REAL_PACKAGE_VERSION)|g' \
|
2011-07-27 14:36:27 -04:00
|
|
|
-e 's|@SIZECMD[@]|$(SIZECMD)|g' \
|
2012-06-08 18:27:34 -04:00
|
|
|
-e 's|@SCRIPTNAME[@]|$@|g' \
|
2011-06-30 11:07:54 -04:00
|
|
|
-e '1s|!/bin/bash|!$(BASH_SHELL)|g'
|
2010-10-11 19:23:16 -04:00
|
|
|
|
2012-04-19 12:46:48 -04:00
|
|
|
$(OTHERSCRIPTS): Makefile
|
2011-12-07 13:33:41 -05:00
|
|
|
$(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 $@
|
2011-03-16 11:38:35 -04:00
|
|
|
|
2012-04-19 12:46:48 -04:00
|
|
|
$(BASHSCRIPTS): Makefile
|
|
|
|
$(AM_V_at)$(RM) $@
|
2012-04-19 12:55:20 -04:00
|
|
|
$(AM_V_GEN)test -f $(srcdir)/$@.sh.in && m4 -P -I $(srcdir) $(srcdir)/$@.sh.in | $(edit) >$@
|
2012-04-19 12:46:48 -04:00
|
|
|
$(AM_V_at)chmod +x,a-w $@
|
2012-04-17 21:34:30 -04:00
|
|
|
@$(BASH_SHELL) -O extglob -n $@
|
2012-04-19 12:46:48 -04:00
|
|
|
|
2010-10-11 19:23:16 -04:00
|
|
|
$(OURFILES): Makefile
|
2011-12-07 13:33:41 -05:00
|
|
|
$(AM_V_at)$(RM) $@ $@.tmp
|
|
|
|
$(AM_V_GEN)$(edit) $(srcdir)/$@.in >$@.tmp
|
|
|
|
$(AM_V_at)chmod a-w $@.tmp
|
|
|
|
$(AM_V_at)mv $@.tmp $@
|
2010-10-11 19:23:16 -04:00
|
|
|
|
2011-03-16 11:38:35 -04:00
|
|
|
all-am: $(OURSCRIPTS) $(OURFILES)
|
2010-10-11 19:23:16 -04:00
|
|
|
|
2011-12-31 20:51:48 -05:00
|
|
|
install-data-local:
|
|
|
|
$(MKDIR_P) $(DESTDIR)$(sysconfdir)/bash_completion.d/
|
|
|
|
$(INSTALL_DATA) bash_completion $(DESTDIR)$(sysconfdir)/bash_completion.d/pacman
|
|
|
|
$(MKDIR_P) $(DESTDIR)$(datarootdir)/zsh/site-functions/
|
|
|
|
$(INSTALL_DATA) zsh_completion $(DESTDIR)$(datarootdir)/zsh/site-functions/_pacman
|
|
|
|
|
|
|
|
uninstall-local:
|
|
|
|
$(RM) $(DESTDIR)$(sysconfdir)/bash_completion.d/pacman
|
|
|
|
$(RM) $(DESTDIR)$(datarootdir)/zsh/site-functions/_pacman
|
|
|
|
|
2012-04-19 12:55:20 -04:00
|
|
|
bacman: $(srcdir)/bacman.sh.in
|
2011-01-24 16:19:14 -05:00
|
|
|
bash_completion: $(srcdir)/bash_completion.in
|
2013-03-21 17:40:32 -04:00
|
|
|
checkupdates: $(srcdir)/checkupdates.sh.in
|
2012-05-06 19:47:47 -04:00
|
|
|
paccache: $(srcdir)/paccache.sh.in $(top_srcdir)/scripts/library/parseopts.sh $(top_srcdir)/scripts/library/size_to_human.sh
|
2012-04-19 12:55:20 -04:00
|
|
|
pacdiff: $(srcdir)/pacdiff.sh.in
|
|
|
|
paclist: $(srcdir)/paclist.sh.in
|
|
|
|
paclog-pkglist: $(srcdir)/paclog-pkglist.sh.in
|
|
|
|
pacscripts: $(srcdir)/pacscripts.sh.in
|
2011-01-24 16:19:14 -05:00
|
|
|
pacsearch: $(srcdir)/pacsearch.in
|
2012-04-19 12:55:20 -04:00
|
|
|
pacsysclean: $(srcdir)/pacsysclean.sh.in
|
2012-04-22 17:38:48 -04:00
|
|
|
rankmirrors: $(srcdir)/rankmirrors.sh.in
|
2012-01-09 16:01:48 -05:00
|
|
|
updpkgsums: $(srcdir)/updpkgsums.sh.in
|
2011-01-24 16:19:14 -05:00
|
|
|
zsh_completion: $(srcdir)/zsh_completion.in
|
|
|
|
|
2014-01-22 18:06:11 -05:00
|
|
|
# vim:set noet:
|