Skip to content

Commit

Permalink
make install and uninstall more generic
Browse files Browse the repository at this point in the history
  • Loading branch information
frederic-mahe committed Mar 23, 2024
1 parent 1a1947c commit 5afda07
Showing 1 changed file with 7 additions and 3 deletions.
10 changes: 7 additions & 3 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -83,11 +83,15 @@ dist-clean: clean
rm -f *~ ./src/*~ ./tests/*~ ./man/*~

install: $(PROG) $(MAN)
/usr/bin/install -c ./$(PROG) '/usr/local/bin'
/usr/bin/install -c $(MAN) '/usr/local/share/man/man1'
$(INSTALL_PROGRAM) $(PROG) $(DESTDIR)$(bindir)
$(INSTALL_PROGRAM) $(MAN) $(DESTDIR)$(man1dir)

uninstall:
rm $(DESTDIR)$(bindir)/$(PROG)
rm $(DESTDIR)$(man1dir)/$(PROG).1

check:
bash ./tests/mumu.sh ./$(PROG)

# make sure rules run even if no file was modified
.PHONY: all clean coverage debug dist-clean install profile check
.PHONY: all clean coverage debug dist-clean install uninstall profile check

0 comments on commit 5afda07

Please sign in to comment.