summaryrefslogtreecommitdiff
path: root/etc/Makefile
Commit message (Collapse)AuthorAgeFilesLines
* make: avoid hard-coding path to sed (#357)Chris Hofstaedtler2022-07-301-1/+1
| | | | | | Just use PATH to find sed. Not all distributions have moved to a /usr-merged layout yet. Signed-off-by: Chris Hofstaedtler <zeha@debian.org>
* etc: install system unit with without executable bit (#354)Christian Hesse2022-07-071-2/+2
| | | | All systemd unit files are expected to be not executable, so install with correct permissions.
* Add a 'distclean' Makefile top-level targetLee Duncan2022-05-091-2/+6
| | | | | | | | | | This cleans up a little more than "make clean", in particular removing files generated from templates, and automake-generated files in iscsiuio. Also, a ".PHONY:" target was added where needed so that each Makefile has a complete list of phony targets.
* Build: install systemd generator file with svc filesLee Duncan2022-04-041-4/+14
| | | | | | | Installation of the systemd generator file ibft-rule-generator is added in etc/Makefile to the "install" target, and that target is broken into "install_systemd_service_files", and "install_systemd_generator_files", for caller convenience.
* Build: use upper- vs lower-case variable names correctlyLee Duncan2022-04-041-11/+12
| | | | | For the files we insall from etc/Makefile, this avoids prepending with DESTDIR twice.
* Make DB and ISCSIHOME directories configurable.Lee Duncan2022-03-251-16/+35
| | | | | | | | | | | | | | | | | | | | This commit adds two new top-level build options: one for the "home" directory for open-iscsi called "HOMEDIR", and one for the "database" directory, called "DBROOT". One can now override the defaults of "/etc/iscsi" for either or both of these directories on the make command line. The README and man pages are updated with details about these new options. Some Makefile cleanup/repair was done as well. Installation of the initiatorname.iscsi file, was moved out of the top-level Makefile into the etc subdirectory, and installation of man ages moved from the top-level Makefile to the doc subdirectory. Also, this fixes some issues from commit fd14dd8316b1 ("Clean p Makefile build system."), which incorrectly changed the DESTDIR ariable in the Makefiles. This current commit also fixes the top-level variable names for moving DBROOT and HOMEDIR.
* Clean up Makefile build system.Lee Duncan2022-03-201-0/+81
A major overdue overhaul of the Make layout, including moving lots of lower-level things out of the top-level Makefile into the Makefiles for the appropriate subdirectory, renaming the template files (where @SBINDIR@ gets translated) so that their purpose is more obvious, making the build more idempotent (no need to install a file if it's not newer). Should be no functional change, as no script or C file changed. Main difference from before: now the udev rules gets made and installed by default (as part of "make"/"make install"), and the iscsiuio daemon is now installed for "make install". One should now be able to go into any subdirectory and type "make"/"make install" to build and install the targets from that directory, at least for the etc, utils, and usr subdirectories. This change is in preparation for more template translations coming.