added install option to makefile

This commit is contained in:
Noah Swerhun 2021-09-18 21:34:54 -05:00
parent 5a7bcb77d6
commit 6424b4b39b

View file

@ -21,3 +21,9 @@ $(OBJDIR)/%.o: $(SRCDIR)/%.c $(INCDIR)/%.h config.h
.PHONY: clean
clean:
-rm $(OUTFILE) $(OBJ)
.PHONY: install
install: $(OUTFILE)
cp $(OUTFILE) /usr/local/bin
chown root /usr/local/bin/$(OUTFILE)
chmod 755 /usr/local/bin/$(OUTFILE)