star-style

Writing conventions for co-authors
git clone git://git.meso-star.com/star-style.git
Log | Files | Refs | README | LICENSE

Makefile (1439B)


      1 # Copyright (C) 2026 |Méso|Star> (contact@meso-star.com)
      2 #
      3 # This file is part of Star-Style
      4 #
      5 # Star-Style 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 # Star-Style 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 Star-Style. If not, see <http://www.gnu.org/licenses/>.
     17 
     18 .POSIX:
     19 
     20 include config.mk
     21 
     22 MAN = doc/fr/star-c.7
     23 
     24 default: $(MAN)
     25 
     26 man: # Force rebuild
     27 
     28 doc/fr/star-c.7: man
     29 	sed 's#@APPPREFIX@#$(APPPREFIX)#g' $@.in > $@
     30 
     31 clean:
     32 	rm -f $(MAN)
     33 
     34 lint: $(MAN)
     35 	@for i in $(MAN); do \
     36 	  printf 'lint %s\n' "$${i}"; \
     37 	  mandoc -Tlint -Werror "$${i}"; \
     38 	done
     39 
     40 install: $(MAN)
     41 	mkdir -p "$(DESTDIR)$(MANPREFIX)/fr/man7"
     42 	cp doc/fr/star-c.7 "$(DESTDIR)$(MANPREFIX)/fr/man7"
     43 	chmod 644 "$(DESTDIR)$(MANPREFIX)/fr/man7/star-c.7"
     44 	mkdir -p "$(DESTDIR)$(APPPREFIX)/star-style"
     45 	cp vimrc "$(DESTDIR)$(APPPREFIX)/star-style"
     46 	chmod 644 "$(DESTDIR)$(APPPREFIX)/star-style/vimrc"
     47 
     48 uninstall:
     49 	rm -rf "$(DESTDIR)$(MANPREFIX)/fr/man7/star-c.7"
     50 	rm -rf "$(DESTDIR)$(APPPREFIX)/star-style/vimrc"