added install option to makefile
This commit is contained in:
parent
5a7bcb77d6
commit
6424b4b39b
1 changed files with 6 additions and 0 deletions
6
Makefile
6
Makefile
|
@ -21,3 +21,9 @@ $(OBJDIR)/%.o: $(SRCDIR)/%.c $(INCDIR)/%.h config.h
|
||||||
.PHONY: clean
|
.PHONY: clean
|
||||||
clean:
|
clean:
|
||||||
-rm $(OUTFILE) $(OBJ)
|
-rm $(OUTFILE) $(OBJ)
|
||||||
|
|
||||||
|
.PHONY: install
|
||||||
|
install: $(OUTFILE)
|
||||||
|
cp $(OUTFILE) /usr/local/bin
|
||||||
|
chown root /usr/local/bin/$(OUTFILE)
|
||||||
|
chmod 755 /usr/local/bin/$(OUTFILE)
|
||||||
|
|
Loading…
Reference in a new issue