.PHONY: public release install xonotic clean .PRECIOUS: tmp/fea/Xolonium-Regular.fea tmp/fea/Xolonium-Bold.fea version := 3.1 release := xolonium-fonts-${version} # Public Version public: \ release/public/Xolonium-Bold.otf \ release/public/Xolonium-Regular.otf release: \ release/public/FEATURES.txt \ release/public/FONTLOG.txt \ release/public/LICENSE.txt \ release/public/xolonium.png \ release/public/Xolonium-Bold.otf \ release/public/Xolonium-Regular.otf @ rm -rf ${release} @ rm -rf ${release}.zip @ mkdir ${release} @ cp $^ ${release} @ 7za a -tzip -mfb=258 -mpass=15 ${release}.zip ${release} install: public @ cp release/public/Xolonium-Regular.otf ~/.fonts/Xolonium-Regular.otf @ cp release/public/Xolonium-Bold.otf ~/.fonts/Xolonium-Bold.otf # Xonotic Version xonotic: \ release/xonotic/Xolonium-GPL-Bold.otf \ release/xonotic/Xolonium-GPL-Regular.otf # Cleanup clean: @ rm -rf tmp @ rm -rf ${release} @ rm -rf ${release}.zip @ rm -rf release/public/Xolonium-Bold.otf @ rm -rf release/public/Xolonium-Regular.otf @ rm -rf release/xonotic/Xolonium-GPL-Bold.otf @ rm -rf release/xonotic/Xolonium-GPL-Regular.otf # Recipes release/public/Xolonium-%.otf: \ src/sfd/Xolonium-%.sfd \ src/sfd/Xolonium-Dingbats.sfd \ tmp/fea/Xolonium-%.fea @ ./tools/compile.ff ${version} $^ $@ tmp/fea/Xolonium-%.fea: \ src/fea/Xolonium-Shared-Head.fea \ src/fea/Xolonium-Kern-Latin.fea \ src/fea/Xolonium-Kern-Greek.fea \ src/fea/Xolonium-Kern-Cyrillic.fea \ src/fea/Xolonium-Unshared-%.fea \ src/fea/Xolonium-Shared-Tail.fea @ mkdir -p tmp/fea @ cat $^ | sed -f tools/substitute.sed > $@ release/xonotic/Xolonium-GPL-%.otf: \ tmp/sfd/Xolonium-GPL-%.sfd \ src/sfd/Xolonium-Dingbats.sfd \ tmp/fea/Xolonium-%.fea @ ./tools/compile.ff ${version} $^ $@ tmp/sfd/Xolonium-GPL-%.sfd: \ src/sfd/Xolonium-%.sfd @ mkdir -p tmp/sfd @ cp $^ $@ @ sed -i 's|FontName: Xolonium|FontName: Xolonium-GPL|' $@ @ sed -i 's|FullName: Xolonium|FullName: Xolonium GPL|' $@ @ sed -i 's|FamilyName: Xolonium|FamilyName: Xolonium GPL|' $@ @ sed -i 's|LangName:.*|LangName: 1033 "" "" "$*" "" "" "" "" "" "" "Severin Meyer" "" "http://gitlab.com/sev/xolonium" "" "This font is licensed under the GNU General Public License, either version 2 of the license, or any later version.+AAoACgAA-This font is provided WITHOUT WARRANTY OF ANY KIND, either express or implied. See the GNU General Public License for more details.+AAoACgAA-As a special exception, if you create a document which uses this font, and embed this font or unaltered portions of this font into the document, this font does not by itself cause the resulting document to be covered by the GNU General Public License. This exception does not however invalidate any other reasons why the document might be covered by the GNU General Public License. If you modify this font, you may extend this exception to your version of the font, but you are not obligated to do so. If you do not wish to do so, delete this exception statement from your version." "http://www.gnu.org/licenses/gpl-2.0"|' $@