git-wad

Manage files via git but not their content
git clone git://git.meso-star.fr/git-wad.git
Log | Files | Refs | README | LICENSE

Makefile (1433B)


      1 # Copyright (C) 2023-2025 |Méso|Star> (contact@meso-star.com)
      2 #
      3 # This program is free software: you can redistribute it and/or modify
      4 # it under the terms of the GNU General Public License as published by
      5 # the Free Software Foundation, either version 3 of the License, or
      6 # (at your option) any later version.
      7 #
      8 # This program is distributed in the hope that it will be useful,
      9 # but WITHOUT ANY WARRANTY; without even the implied warranty of
     10 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
     11 # GNU General Public License for more details.
     12 #
     13 # You should have received a copy of the GNU General Public License
     14 # along with this program. If not, see <http://www.gnu.org/licenses/>.
     15 
     16 .POSIX:
     17 .SUFFIXES: # Clean-up default inference rules
     18 
     19 # Default install directory
     20 PREFIX = /usr/local
     21 MANPREFIX = $(PREFIX)/share/man
     22 
     23 # Nothing to do
     24 default:
     25 
     26 install:
     27 	mkdir -p $(DESTDIR)$(PREFIX)/bin/
     28 	cp git-wad $(DESTDIR)$(PREFIX)/bin/
     29 	chmod 755 $(DESTDIR)$(PREFIX)/bin/git-wad
     30 	mkdir -p $(DESTDIR)$(MANPREFIX)/man1
     31 	cp git-wad.1 $(DESTDIR)$(MANPREFIX)/man1
     32 	chmod 644 $(DESTDIR)$(MANPREFIX)/man1/git-wad.1
     33 
     34 uninstall:
     35 	rm -f $(DESTDIR)$(PREFIX)/bin/git-wad
     36 	rm -f $(DESTDIR)$(PREFIX)/share/man/man1/git-wad.1
     37 
     38 lint:
     39 	shellcheck -o all git-wad
     40 	shellcheck -o all test_tiny_bin.sh
     41 	shellcheck -o all test_update.sh
     42 	mandoc -Wbase -Tlint git-wad.1
     43 
     44 test:
     45 	./test_tiny_bin.sh 1> /dev/null 2>&1
     46 	./test_update.sh 1> /dev/null 2>&1