############################################################################### # # # firmware-update - IPFire Firmware Update Tool # # Copyright (C) 2019 IPFire Development Team # # # # This program is free software: you can redistribute it and/or modify # # it under the terms of the GNU General Public License as published by # # the Free Software Foundation, either version 3 of the License, or # # (at your option) any later version. # # # # This program is distributed in the hope that it will be useful, # # but WITHOUT ANY WARRANTY; without even the implied warranty of # # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the # # GNU General Public License for more details. # # # # You should have received a copy of the GNU General Public License # # along with this program. If not, see . # # # ############################################################################### AM_MAKEFLAGS = --no-print-directory # Remove target if the command fails .DELETE_ON_ERROR: CLEANFILES = DISTCLEANFILES = EXTRA_DIST = sbin_SCRIPTS = \ src/kernel-updater EXTRA_DIST += \ src/kernel-updater.in CLEANFILES += \ src/kernel-updater # ------------------------------------------------------------------------------ substitutions = \ '|PACKAGE_NAME=$(PACKAGE_NAME)|' \ '|PACKAGE_VERSION=$(PACKAGE_VERSION)|' \ '|configsdir=$(configsdir)|' \ '|sbindir=$(sbindir)|' SED_PROCESS = \ $(AM_V_GEN)$(MKDIR_P) $(dir $@) && \ $(SED) $(subst '|,-e 's|@,$(subst =,\@|,$(subst |',|g',$(substitutions)))) \ < $< > $@ src/%: src/%.in Makefile $(SED_PROCESS)