from small one page howto to huge articles all in one place
 

search text in:




Other .linuxhowtos.org sites: www.linuxhowtos.org
toolsntoys.linuxhowtos.org



Last additions:
How to make X listen on port 6000

How to make X listen on port 6000

words:

34

views:

42697

userrating:

average rating: 1.5 (4 votes) (1=very good 6=terrible)


May, 25th 2007:
April, 26th 2007:
Apr, 10th. 2007:
Druckversion . pdf icon
You are here: Tutorials per portage category->sys-devel->make

Thanks to Lars Weiler for providing this week's tip.

Usualy make from sys-devel/make is known as a tool for compiling applications. But it could also be used to provide often used commands so that they can be accessed easily.

Quite everybody wants to do backups. This could be done by packing them with tar. For instance, we want to pack the ~/Mail folder and name the file with a date:

Code Listing 1: tar ~/Mail with date included


$ tar cvjf ~/Backups/Mail-`date +%F`.tar.bz2 ~/Mail


After that we copy that file (and possibly more) to another computer by using rsync and delete all the files in ~/Backups afterwards:

Code Listing 2: Copy backup-file to another computer with rsync


$ rsync -avute ssh ~/Backups/ user@othermachine:~/Backups/
% rm ~/Backups/*


And now comes the clue with make. After a week you already forgot the commands. Why not store them in a Makefile located in the home-directory, so that you only have to call make backup?

Inside the Makefile (beware of the uppercased 'M') we provide two targets for the commands, so that we can call them separately, e.g. if you only want to copy the files. The first target backup will only call the other targets in the given order:

Code Listing 3: Sample Makefile for backups


backup: compress \
copy

compress:
tar cvjf ~/Backups/Mail-`date +%F`.tar.bz2 ~/Mail

copy:
rsync -avute ssh ~/Backups/ user@othermachine:~/Backups/
rm ~/Backups/*



Now we can call make backup in the home directory and the ~/Mail-folder will be compressed and copied to the other computer. The restore-command-set will be your homework ;-)

Of course, there is a wide use for batched processes with Makefiles. Think about all the things you ever wanted to have scripted with easy usability. You can find more instructions in the info make pages.
rate this article:
current rating: average rating: 5.0 (1 votes) (1=very good 6=terrible)
Your rating:
Very good (1) Good (2) ok (3) average (4) bad (5) terrible (6)

back



Other free services
toURL.org
Shorten long
URLs to short
links like
http://tourl.org/2
tourl.org
.
Reverse DNS lookup
Find out which hostname(s)
resolve to a
given IP or other hostnames for the server
www.reversednslookup.org

New Packages

- as rdf newsfeed
- as rss newsfeed
- as Atom newsfeed
2018-09-21
android-ndk - 18
Ebuild name:

dev-util/android-ndk-18

Description

Open Handset Alliance's Android NDK (Native Dev Kit)

Added to portage

2018-09-21

baldurs-gate-ee - 2.5.23121
Ebuild name:

games-rpg/baldurs-gate-ee-2.5.23121

Description

Baldur's Gate Enhanced Edition

Added to portage

2018-09-21

binutils - 2.31.1-r1
Ebuild name:

sys-devel/binutils-2.31.1-r1

Description

Tools necessary to build programs

Added to portage

2018-09-21

binutils-hppa64 - 2.31.1-r1
Ebuild name:

sys-devel/binutils-hppa64-2.31.1-r1

Description

Tools necessary to build programs

Added to portage

2018-09-21

binutils-libs - 2.31.1-r1
Ebuild name:

sys-libs/binutils-libs-2.31.1-r1

Description

Core binutils libraries (libbfd, libopcodes, libiberty) for extern

Added to portage

2018-09-21

bitcoin-cli - 0.16.3
Ebuild name:

net-p2p/bitcoin-cli-0.16.3

Description

Command-line JSON-RPC client specifically for interfacing with bitcoind

Added to portage

2018-09-21

bitcoin-qt - 0.16.3
Ebuild name:

net-p2p/bitcoin-qt-0.16.3

Description

An end-user Qt GUI for the Bitcoin crypto-currency

Added to portage

2018-09-21

bitcoin-tx - 0.16.3
Ebuild name:

dev-util/bitcoin-tx-0.16.3

Description

Command-line Bitcoin transaction tool

Added to portage

2018-09-21

bitcoind - 0.16.3
Ebuild name:

net-p2p/bitcoind-0.16.3

Description

Original Bitcoin crypto-currency wallet for automated services

Added to portage

2018-09-21

clair - 2.0.6
Ebuild name:

dev-util/clair-2.0.6

Description

Vulnerability Static Analysis for Containers

Added to portage

2018-09-21

cmatrix - 1.2a-r4
Ebuild name:

app-misc/cmatrix-1.2a-r4

Description

An ncurses based app to show a scrolling screen from the Matrix

Added to portage

2018-09-21

cni-plugins - 0.7.3
Ebuild name:

net-misc/cni-plugins-0.7.3

Description

Standard networking plugins for container networking

Added to portage

2018-09-21

cnijfilter2 - 5.50
Ebuild name:

net-print/cnijfilter2-5.50

Description

IJ Printer Driver

Added to portage

2018-09-21

encodings - 1.0.4-r3
Ebuild name:

media-fonts/encodings-1.0.4-r3

Description

X.Org font encodings

Added to portage

2018-09-21

exiv2 - 0.26_p20180811-r2
Ebuild name:

media-gfx/exiv2-0.26_p20180811-r2

Description

EXIF, IPTC and XMP metadata C++ library and command line utility

Added to portage

2018-09-21

exiv2 - 0.26_p20180811-r3
Ebuild name:

media-gfx/exiv2-0.26_p20180811-r3

Description

EXIF, IPTC and XMP metadata C++ library and command line utility

Added to portage

2018-09-21

gst-plugins-meta - 1.14.3
Ebuild name:

media-plugins/gst-plugins-meta-1.14.3

Description

Meta ebuild to pull in gst plugins for apps

Added to portage

2018-09-21

gtk+ - 3.24.1
Ebuild name:

x11-libs/gtk+-3.24.1

Description

Gimp ToolKit +

Added to portage

2018-09-21

iwd - 0.8
Ebuild name:

net-wireless/iwd-0.8

Description

Wireless daemon for linux

Added to portage

2018-09-21

libbitcoinconsensus - 0.16.3
Ebuild name:

net-libs/libbitcoinconsensus-0.16.3

Description

Bitcoin Core consensus library

Added to portage

2018-09-21

libssh - 0.8.3
Ebuild name:

net-libs/libssh-0.8.3

Description

Access a working SSH implementation by means of a library

Added to portage

2018-09-21

lttng-modules - 2.10.6-r1
Ebuild name:

dev-util/lttng-modules-2.10.6-r1

Description

LTTng Kernel Tracer Modules

Added to portage

2018-09-21

master-pdf-editor - 5.1.42
Ebuild name:

app-text/master-pdf-editor-5.1.42

Description

A complete solution for viewing and editing PDF files

Added to portage

2018-09-21

mplus-fonts - 2.2.4-r1
Ebuild name:

media-fonts/mplus-fonts-2.2.4-r1

Description

M+ Japanese bitmap fonts

Added to portage

2018-09-21

opera-beta - 56.0.3051.28
Ebuild name:

www-client/opera-beta-56.0.3051.28

Description

A fast and secure web browser

Added to portage

2018-09-21

passwordsafe - 1.06_beta-r1
Ebuild name:

app-admin/passwordsafe-1.06_beta-r1

Description

Password manager with wxGTK based frontend

Added to portage

2018-09-21

prometheus - 2.4.1
Ebuild name:

app-metrics/prometheus-2.4.1

Description

Prometheus monitoring system and time series database

Added to portage

2018-09-21

prometheus - 2.4.2
Ebuild name:

app-metrics/prometheus-2.4.2

Description

Prometheus monitoring system and time series database

Added to portage

2018-09-21

puppetserver - 6.0.0-r1
Ebuild name:

app-admin/puppetserver-6.0.0-r1

Description

Puppet Server is the next-generation application for managing Puppe

Added to portage

2018-09-21

rtsp-conntrack - 3.7-r1
Ebuild name:

net-firewall/rtsp-conntrack-3.7-r1

Description

RTSP conntrack module for Netfilter

Added to portage

2018-09-21

ski - 1.3.2-r3
Ebuild name:

app-emulation/ski-1.3.2-r3

Description

ia64 instruction set simulator

Added to portage

2018-09-21

smc-sum-driver - 1.6.0.20151201-r2
Ebuild name:

sys-apps/smc-sum-driver-1.6.0.20151201-r2

Description

Supermicro Update Manager (SUM) kernel module

Added to portage

2018-09-21

wesnoth - 1.14.5
Ebuild name:

games-strategy/wesnoth-1.14.5

Description

Battle for Wesnoth - A fantasy turn-based strategy game

Added to portage

2018-09-21

2018-09-20
asciimatics - 1.10.0
Ebuild name:

dev-python/asciimatics-1.10.0

Description

Pythonic library to create text UIs and ASCII art animations

Added to portage

2018-09-20

bitstream-cyberbit - 2.0-r2
Ebuild name:

media-fonts/bitstream-cyberbit-2.0-r2

Description

Cyberbit Unicode (including CJK) font

Added to portage

2018-09-20

ca-bundle - 1.1.2
Ebuild name:

dev-php/ca-bundle-1.1.2

Description

Find the system CA bundle or fall back to the Mozilla one

Added to portage

2018-09-20

chrony - 3.4
Ebuild name:

net-misc/chrony-3.4

Description

NTP client and server programs

Added to portage

2018-09-20

clang - 7.0.0
Ebuild name:

sys-devel/clang-7.0.0

Description

C language family frontend for LLVM

Added to portage

2018-09-20

clang-common - 7.0.0
Ebuild name:

sys-devel/clang-common-7.0.0

Description

Common files shared between multiple slots of clang

Added to portage

2018-09-20

clang-python - 7.0.0
Ebuild name:

dev-python/clang-python-7.0.0

Description

Python bindings for sys-devel/clang

Added to portage

2018-09-20

clang-runtime - 7.0.0
Ebuild name:

sys-devel/clang-runtime-7.0.0

Description

Meta-ebuild for clang runtime libraries

Added to portage

2018-09-20

compiler-rt - 7.0.0
Ebuild name:

sys-libs/compiler-rt-7.0.0

Description

Compiler runtime library for clang (built-in part)

Added to portage

2018-09-20

compiler-rt-sanitizers - 7.0.0
Ebuild name:

sys-libs/compiler-rt-sanitizers-7.0.0

Description

Compiler runtime libraries for clang (sanitizers & xray)

Added to portage

2018-09-20

composer - 1.7.2
Ebuild name:

dev-php/composer-1.7.2

Description

Dependency Manager for PHP

Added to portage

2018-09-20

debugedit - 4.14.2
Ebuild name:

dev-util/debugedit-4.14.2

Description

Stand-alone debugedit from RPM

Added to portage

2018-09-20

displaycal - 3.6.2.0
Ebuild name:

media-gfx/displaycal-3.6.2.0

Description

Display calibration and characterization powered by Argyll CMS

Added to portage

2018-09-20

dracut - 048
Ebuild name:

sys-kernel/dracut-048

Description

Generic initramfs generation tool

Added to portage

2018-09-20

erlang - 20.3.8.9
Ebuild name:

dev-lang/erlang-20.3.8.9

Description

Erlang programming language, runtime environment and libraries (OTP)

Added to portage

2018-09-20

erlang - 21.0.9
Ebuild name:

dev-lang/erlang-21.0.9

Description

Erlang programming language, runtime environment and libraries (OTP)

Added to portage

2018-09-20

f2fs-tools - 1.11.0-r1
Ebuild name:

sys-fs/f2fs-tools-1.11.0-r1

Description

Tools for Flash-Friendly File System (F2FS)

Added to portage

2018-09-20

fugitive - 2.4
Ebuild name:

app-vim/fugitive-2.4

Description

vim plugin a git wrapper for vim

Added to portage

2018-09-20

gentoo-sources - 4.14.71
Ebuild name:

sys-kernel/gentoo-sources-4.14.71

Description

Full sources including the Gentoo patchset for the . kernel tree

Added to portage

2018-09-20

gentoo-sources - 4.18.9
Ebuild name:

sys-kernel/gentoo-sources-4.18.9

Description

Full sources including the Gentoo patchset for the . kernel tree

Added to portage

2018-09-20

gentoo-sources - 4.4.157
Ebuild name:

sys-kernel/gentoo-sources-4.4.157

Description

Full sources including the Gentoo patchset for the . kernel tree

Added to portage

2018-09-20

gentoo-sources - 4.9.128
Ebuild name:

sys-kernel/gentoo-sources-4.9.128

Description

Full sources including the Gentoo patchset for the . kernel tree

Added to portage

2018-09-20

gvim - 8.1.0412
Ebuild name:

app-editors/gvim-8.1.0412

Description

GUI version of the Vim text editor

Added to portage

2018-09-20

hylafaxplus - 5.6.1
Ebuild name:

net-misc/hylafaxplus-5.6.1

Description

Enterprise client-server fax package for class 1 and 2 fax modems

Added to portage

2018-09-20

json-schema - 5.2.7
Ebuild name:

dev-php/json-schema-5.2.7

Description

PHP implementation of JSON schema

Added to portage

2018-09-20

jsonlint - 1.7.1
Ebuild name:

dev-php/jsonlint-1.7.1

Description

JSON Lint for PHP

Added to portage

2018-09-20

lazarus - 1.8.4-r1
Ebuild name:

dev-lang/lazarus-1.8.4-r1

Description

Lazarus IDE is a feature rich visual programming environment emulating De

Added to portage

2018-09-20

libcxx - 7.0.0
Ebuild name:

sys-libs/libcxx-7.0.0

Description

New implementation of the C++ standard library, targeting C++11

Added to portage

2018-09-20

libcxxabi - 7.0.0
Ebuild name:

sys-libs/libcxxabi-7.0.0

Description

Low level support for a standard C++ library

Added to portage

2018-09-20

libomp - 7.0.0
Ebuild name:

sys-libs/libomp-7.0.0

Description

OpenMP runtime library for LLVM/clang compiler

Added to portage

2018-09-20

lit - 7.0.0
Ebuild name:

dev-python/lit-7.0.0

Description

A stand-alone install of the LLVM suite testing tool

Added to portage

2018-09-20

lld - 7.0.0
Ebuild name:

sys-devel/lld-7.0.0

Description

The LLVM linker (link editor)

Added to portage

2018-09-20

lldb - 7.0.0
Ebuild name:

dev-util/lldb-7.0.0

Description

The LLVM debugger

Added to portage

2018-09-20

llvm - 7.0.0
Ebuild name:

sys-devel/llvm-7.0.0

Description

Low Level Virtual Machine

Added to portage

2018-09-20

llvm-common - 7.0.0
Ebuild name:

sys-devel/llvm-common-7.0.0

Description

Common files shared between multiple slots of LLVM

Added to portage

2018-09-20

llvm-libunwind - 7.0.0
Ebuild name:

sys-libs/llvm-libunwind-7.0.0

Description

C++ runtime stack unwinder from LLVM

Added to portage

2018-09-20

llvm-ocaml - 7.0.0
Ebuild name:

dev-ml/llvm-ocaml-7.0.0

Description

OCaml bindings for LLVM

Added to portage

2018-09-20

mbpfan - 2.1.0
Ebuild name:

app-laptop/mbpfan-2.1.0

Description

A simple daemon to control fan speed on all Macbook/Macbook Pros

Added to portage

2018-09-20

mgetty - 1.2.1
Ebuild name:

net-dialup/mgetty-1.2.1

Description

fax and voice modem programs

Added to portage

2018-09-20

nix - 2.1.2
Ebuild name:

sys-apps/nix-2.1.2

Description

A purely functional package manager

Added to portage

2018-09-20

numix-icon-theme-circle - 18.09.19
Ebuild name:

x11-themes/numix-icon-theme-circle-18.09.19

Description

An icon theme for Linux from the Numix project

Added to portage

2018-09-20

nvidia-drivers - 410.57
Ebuild name:

x11-drivers/nvidia-drivers-410.57

Description

NVIDIA Accelerated Graphics Driver

Added to portage

2018-09-20

phar-utils - 1.0.1
Ebuild name:

dev-php/phar-utils-1.0.1

Description

PHAR file format utilities, for when PHP phars you up

Added to portage

2018-09-20

pycountry - 18.5.26
Ebuild name:

dev-python/pycountry-18.5.26

Description

Database of countries, subdivisions, languages, currencies and script

Added to portage

2018-09-20

pycryptodome - 3.6.6
Ebuild name:

dev-python/pycryptodome-3.6.6

Description

A self-contained cryptographic library for Python

Added to portage

2018-09-20

pyfiglet - 0.7.5
Ebuild name:

dev-python/pyfiglet-0.7.5

Description

An implementation of figlet written in Python

Added to portage

2018-09-20

pyocr - 0.5.3
Ebuild name:

dev-python/pyocr-0.5.3

Description

An optical character recognition (OCR) tool wrapper for python

Added to portage

2018-09-20

qbittorrent - 4.1.3
Ebuild name:

net-p2p/qbittorrent-4.1.3

Description

BitTorrent client in C++ and Qt

Added to portage

2018-09-20

recommonmark - 0.5.0_pre20180907
Ebuild name:

dev-python/recommonmark-0.5.0_pre20180907

Description

Python docutils-compatibility bridge to CommonMark

Added to portage

2018-09-20

rng-tools - 6.4
Ebuild name:

sys-apps/rng-tools-6.4

Description

Daemon to use hardware random number generators

Added to portage

2018-09-20

signal-desktop-bin - 1.16.1
Ebuild name:

net-im/signal-desktop-bin-1.16.1

Description

Allows you to send and receive messages of Signal Messenger on you

Added to portage

2018-09-20

spdx-licenses - 1.4.0-r1
Ebuild name:

dev-php/spdx-licenses-1.4.0-r1

Description

Tools for working with and validating SPDX licenses

Added to portage

2018-09-20

symbola - 11.00-r1
Ebuild name:

media-fonts/symbola-11.00-r1

Description

Unicode font for Latin, IPA Extensions, Greek, Cyrillic and many Symbo

Added to portage

2018-09-20

symfony-console - 2.8.43
Ebuild name:

dev-php/symfony-console-2.8.43

Description

Subtree split of the Symfony Console Component

Added to portage

2018-09-20

ubuntu-keyring - 2018.09.18.1
Ebuild name:

app-crypt/ubuntu-keyring-2018.09.18.1

Description

GnuPG archive keys of the Ubuntu archive

Added to portage

2018-09-20

vanilla-sources - 4.14.71
Ebuild name:

sys-kernel/vanilla-sources-4.14.71

Description

Full sources for the Linux kernel

Added to portage

2018-09-20

vanilla-sources - 4.18.9
Ebuild name:

sys-kernel/vanilla-sources-4.18.9

Description

Full sources for the Linux kernel

Added to portage

2018-09-20

vanilla-sources - 4.4.157
Ebuild name:

sys-kernel/vanilla-sources-4.4.157

Description

Full sources for the Linux kernel

Added to portage

2018-09-20

vanilla-sources - 4.9.128
Ebuild name:

sys-kernel/vanilla-sources-4.9.128

Description

Full sources for the Linux kernel

Added to portage

2018-09-20

vim - 8.1.0412
Ebuild name:

app-editors/vim-8.1.0412

Description

Vim, an improved vi-style text editor

Added to portage

2018-09-20

vim-core - 8.1.0412
Ebuild name:

app-editors/vim-core-8.1.0412

Description

vim and gvim shared files

Added to portage

2018-09-20

vivaldi-snapshot - 2.0.1309.3_p2
Ebuild name:

www-client/vivaldi-snapshot-2.0.1309.3_p2

Description

A browser for our friends

Added to portage

2018-09-20

wmcalc - 0.7
Ebuild name:

x11-plugins/wmcalc-0.7

Description

A WindowMaker DockApp calculator

Added to portage

2018-09-20

x11fonts-jmk - 3.0-r3
Ebuild name:

media-fonts/x11fonts-jmk-3.0-r3

Description

This package contains character-cell fonts for use with X

Added to portage

2018-09-20

xdebug-handler - 1.3.0
Ebuild name:

dev-php/xdebug-handler-1.3.0

Description

Restart a CLI process without loading the xdebug extension

Added to portage

2018-09-20

xflux-gui - 1.1.10_p20180910
Ebuild name:

x11-misc/xflux-gui-1.1.10_p20180910

Description

A GUI for f.lux

Added to portage

2018-09-20

youtube-dl - 2018.09.18
Ebuild name:

net-misc/youtube-dl-2018.09.18

Description

Download videos from YouTube.com (and more sites...)

Added to portage

2018-09-20

rdf newsfeed | rss newsfeed | Atom newsfeed
- Powered by LeopardCMS - Running on Gentoo -
Copyright 2004-2018 Sascha Nitsch Unternehmensberatung UG(haftungsbeschänkt)
Valid XHTML1.1 : Valid CSS : buttonmaker
- Level Triple-A Conformance to Web Content Accessibility Guidelines 1.0 -
- Copyright and legal notices -
Time to create this page: 70.8 ms