Makefile (1466B)
1 # Copyright (C) 2026 |Méso|Star> (contact@meso-star.com) 2 # 3 # This file is part of HTGOP doc. 4 # 5 # HTGOP doc 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 # HTGOP doc is distributed in the hope that it will be useful, but 11 # WITHOUT ANY WARRANTY; without even the implied warranty of 12 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU 13 # General Public License for more details. 14 # 15 # You should have received a copy of the GNU General Public License 16 # along with HTGOP doc. If not, see <http://www.gnu.org/licenses/>. 17 18 .POSIX: 19 20 include config.mk 21 22 TEX =\ 23 gas_opt_prop_en.tex\ 24 gas_opt_prop_fr.tex 25 DOC = $(TEX:.tex=.pdf) 26 27 FIG =\ 28 figures/dsi_flux_lw.pdf\ 29 figures/dsi_flux_sw.pdf\ 30 figures/ka_lw.pdf\ 31 figures/si_flux_nominal_lw.pdf\ 32 figures/si_flux_nominal_sw.pdf 33 34 default: $(DOC) 35 36 .SUFFIXES: .pdf .tex 37 38 $(DOC): $(FIG) source_files/input.for 39 40 .tex.pdf: 41 $(LATEX) $< && $(LATEX) $< 42 43 install: $(DOC) 44 mkdir -p $(DESTDIR)$(DOCPREFIX)/htgop 45 for i in $(DOC) README.md LISEZ-MOI.md COPYING; do \ 46 cp "$${i}" $(DESTDIR)$(DOCPREFIX)/htgop/; \ 47 chmod 644 "$(DESTDIR)$(DOCPREFIX)/htgop/$${i}"; \ 48 done 49 50 uninstall: 51 for i in $(DOC) README.md LISEZ-MOI.md COPYING; do \ 52 rm -f "$(DESTDIR)$(DOCPREFIX)/htgop/$${i}"; \ 53 done 54 55 clean: 56 rm -f *.aux *.log *.toc *.out $(DOC)