2021-12-26 22:29:28 +00:00
|
|
|
# SPDX-FileCopyrightText: 2021-2022 Ole Tange, http://ole.tange.dk and Free Software and Foundation, Inc.
|
2021-04-22 16:20:41 +00:00
|
|
|
#
|
|
|
|
# SPDX-License-Identifier: GPL-3.0-or-later
|
|
|
|
|
2011-10-10 19:59:19 +00:00
|
|
|
all: clean makedist unpack build
|
2010-09-06 22:15:53 +00:00
|
|
|
|
|
|
|
unpack:
|
|
|
|
ls ../../parallel-*.tar.bz2| tail -n1 | parallel tar xvf
|
|
|
|
cd parallel-[0-9][0-9][0-9][0-9][0-9][0-9][0-9][0-9]; cp -a ../debian-template debian
|
|
|
|
|
|
|
|
build:
|
2011-10-10 19:59:19 +00:00
|
|
|
which dpkg-buildpackage >/dev/null || ( \
|
|
|
|
echo "Error, could not find 'dpkg-buildpackage'." ; \
|
|
|
|
echo "To install, run:" ; \
|
|
|
|
echo -e "\tapt-get install dpkg-dev" ; \
|
|
|
|
false )
|
2013-06-22 12:24:56 +00:00
|
|
|
cd parallel-[0-9][0-9][0-9][0-9][0-9][0-9][0-9][0-9]; perl -i -pe "s/201[0-9]{5}-[0-9]+/"$$(src/parallel --minversion 1)"/" debian/changelog
|
2011-10-24 19:51:14 +00:00
|
|
|
cd parallel-[0-9][0-9][0-9][0-9][0-9][0-9][0-9][0-9]; dpkg-buildpackage -us -uc -tc
|
2011-10-10 19:59:19 +00:00
|
|
|
@echo
|
|
|
|
@echo "To install the GNU Parallel Debian package, run:"
|
2011-10-13 21:58:02 +00:00
|
|
|
@echo " sudo dpkg -i "`ls -rt parallel_*_all.deb | tail -n 1`
|
2010-09-06 22:15:53 +00:00
|
|
|
|
|
|
|
clean:
|
|
|
|
rm -f parallel_*
|
2011-02-17 16:23:38 +00:00
|
|
|
rm -rf parallel-[0-9][0-9][0-9][0-9][0-9][0-9][0-9][0-9]
|
2010-09-06 22:15:53 +00:00
|
|
|
|
|
|
|
distclean:
|
|
|
|
rm -f parallel_*
|
|
|
|
rm -rf parallel-[0-9][0-9][0-9][0-9][0-9][0-9][0-9][0-9]
|
|
|
|
|
2011-10-10 19:59:19 +00:00
|
|
|
makedist:
|
2011-10-24 19:51:14 +00:00
|
|
|
cd ../..; test [ -f Makefile ] || ./configure
|
2011-10-17 01:10:32 +00:00
|
|
|
cd ../..; make dist-bzip2
|
|
|
|
cd ../..; make dist-gzip
|