Commit Graph

15 Commits

Author SHA1 Message Date
Iustin Pop
3421b4d92a Expand distcheck test to check for installed files
This would have prevented issue #4.
2016-05-01 04:03:21 +02:00
Iustin Pop
948c3e649a Remove obsolete -c option to install
This is in reference to issue #4, which was fixed differently by
recent patch.
2016-05-01 03:34:18 +02:00
Iustin Pop
bf3520374f Allow installing the binaries under /usr/
This patch reworks the directory-related variables to allow
installation of binaries under `/usr/[s]bin`, instead of directly
under `/[s]bin`. It also allows installing the man pages under a
different prefix (e.g. `/usr/local`).

Example:

    $ make install EXEC_PREFIX=/usr

will install binaries under `/usr/bin`, respectively `/usr/sbin`. A
full "local" installation under `/usr/local` is accomplished by:

    $ make install EXEC_PREFIX=/usr/local PREFIX=/usr/local

This patch points once again that an autoconf/automake conversion
would make a lot of sense…

Closes #3. Additionally, it fixes a previous bug with installation of
the manual pages.
2016-05-01 03:25:59 +02:00
Iustin Pop
75644f8ccd Allow configuring the default tape device at build time
Also adds displaying it in the version output, and moves this (the
show version code) into a separate function.
2016-05-01 03:00:32 +02:00
Iustin Pop
ea0031fe07 Add a release tag Makefile target 2016-02-07 21:00:18 +01:00
Iustin Pop
07b1f56b5a Remove no-longer-used qic117.h header file
It seems the need for this went away in version 1.1 (according to the
changelog), so let's drop the file.
2016-02-07 20:42:40 +01:00
Iustin Pop
0ee3591e51 Rework the dist target and drop LSM file
Short of moving to autotools, this is the best that can be done:

- move the version from hardcoded in the .c files, to a
  dynamically-built `version.h` file so that we only declare the
  version in one place
- build a better dist file (.tar.gz) by explicitly selecting which
  files to copy, instead of unbounded recursion from the source
  directory
- ensure that the files being copied to the archive have a sane
  user/group and mode
- add a distcheck target that simply reuses the archive to build and
  run the programs, and then regenerate the archive from itself

autotools would solve all this by default, but still feels too
heavyweight for just two .c files.

Additionall, drop the .lsm file. It seems mostly useless these days;
I'll be happy to reinstate it however if anyone cares.
2016-02-07 20:38:27 +01:00
Iustin Pop
05f1232982 Simple tweak to the Makefile to support DESTDIR
Wondering whether full autoconf/automake is worth for these two simple
tools, probably not.
2016-02-04 21:46:45 +01:00
Iustin Pop
af10994fc0 Small Makefile simplification 2015-05-29 10:42:55 +02:00
Iustin Pop
b943c10fe7 Pass preprocessor flags as well in the Makefile
This allows better hardening of the binary (e.g. in Debian, hardening
flags include pre-processor flags).
2015-05-29 10:35:04 +02:00
Iustin Pop
6fd7c41012 Restore the default value for CFLAGS
Commit 0ca6864 changed CFLAGS to be taken from the environment, but
without using any default value. This patch restores the old CFLAGS
value as the default one.
2015-05-20 10:41:17 +02:00
Ivo De Decker
0ca68642de Use CFLAGS and LDFLAGS from environment
Note: this is a patch originating from the Debian packaging.
2015-05-20 10:39:22 +02:00
Kai Mäkisara
c232ed0dd2 Backdated import of mt-st version 1.1
This is an import of the mt-st upstream release 1.1 as it appeared in
the Debian archives and on ftp://ftp.ibiblio.org/pub/linux/system/backup.
2015-05-16 17:46:05 +02:00
Kai Mäkisara
11875969cd Backdated import of mt-st version 0.8
This is an import of the mt-st upstream release 0.8 as it appeared in
the Debian archives.
2015-05-16 17:33:19 +02:00
Kai Mäkisara
fcb4fbe0d1 Backdated import of mt-st version 0.7
This is an import of the mt-st upstream release 0.7 as it appeared in
the Debian archives.
2015-05-16 17:26:03 +02:00