| 1 |
# Copyright (C) 2006-2025 The Gregorio Project (see CONTRIBUTORS.md) |
| 2 |
# |
| 3 |
# This file is part of Gregorio. |
| 4 |
# |
| 5 |
# Gregorio is free software: you can redistribute it and/or modify |
| 6 |
# it under the terms of the GNU General Public License as published by |
| 7 |
# the Free Software Foundation, either version 3 of the License, or |
| 8 |
# (at your option) any later version. |
| 9 |
# |
| 10 |
# Gregorio is distributed in the hope that it will be useful, |
| 11 |
# but WITHOUT ANY WARRANTY; without even the implied warranty of |
| 12 |
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the |
| 13 |
# GNU General Public License for more details. |
| 14 |
# |
| 15 |
# You should have received a copy of the GNU General Public License |
| 16 |
# along with Gregorio. If not, see <http://www.gnu.org/licenses/>. |
| 17 |
|
| 18 |
SUBDIRS = src examples tex contrib fonts doc macosx |
| 19 |
|
| 20 |
ACLOCAL_AMFLAGS = -I m4 |
| 21 |
|
| 22 |
EXTRA_DIST = README.md CHANGELOG.md CONTRIBUTING.md CONTRIBUTORS.md \ |
| 23 |
UPGRADE.md COPYING.md .gregorio-version VersionManager.py \ |
| 24 |
build.sh install.sh install-gtex.sh |
| 25 |
|
| 26 |
MAINTAINERCLEANFILES = gregoriotex.ctan.zip |
| 27 |
|
| 28 |
VERSION := $(shell ./VersionManager.py --get-current) |
| 29 |
TOP := $(shell pwd) |
| 30 |
export TOP |
| 31 |
|
| 32 |
export TOP_LEVEL_MAKE = true |
| 33 |
|
| 34 |
gregorio: |
| 35 |
$(MAKE) -C src all |
| 36 |
|
| 37 |
fonts: make-fonts |
| 38 |
make-fonts: |
| 39 |
$(MAKE) -C fonts fonts |
| 40 |
|
| 41 |
clean-fonts: |
| 42 |
$(MAKE) -C fonts clean-fonts |
| 43 |
|
| 44 |
doc: pdf |
| 45 |
clean-pdf: clean-doc |
| 46 |
clean-doc: |
| 47 |
$(MAKE) -C doc clean-doc |
| 48 |
|
| 49 |
gregoriotex.tds.zip: dist-zip install-gtex.sh |
| 50 |
./install-gtex.sh tds |
| 51 |
|
| 52 |
ctan: gregoriotex.tds.zip build-ctan.sh |
| 53 |
./build-ctan.sh |
| 54 |
|
| 55 |
dist-hook: |
| 56 |
rm -rf $(distdir)/windows |
| 57 |
|
| 58 |
if MACOSX |
| 59 |
dist-macosx: gregorio doc fonts |
| 60 |
$(MAKE) -C macosx dist-macosx |
| 61 |
else |
| 62 |
dist-macosx: |
| 63 |
@echo "macOS packages can only be built on Mac systems." |
| 64 |
endif |
| 65 |
|
| 66 |
clean-macosx: |
| 67 |
$(MAKE) -C macosx clean-local |