add install and uninstall targets to Makefile
This commit is contained in:
parent
f151e42658
commit
1a313306d6
1 changed files with 7 additions and 0 deletions
7
Makefile
7
Makefile
|
@ -30,6 +30,13 @@ config.h:
|
|||
*) echo "#define Defaultasm Gaself" ;; \
|
||||
esac > $@
|
||||
|
||||
install: $(OBJDIR)/$(BIN)
|
||||
mkdir -p "$(DESTDIR)/$(PREFIX)/bin/"
|
||||
cp $< "$(DESTDIR)/$(PREFIX)/bin/"
|
||||
|
||||
uninstall:
|
||||
rm -f "$(DESTDIR)/$(PREFIX)/bin/$(BIN)"
|
||||
|
||||
clean:
|
||||
rm -fr $(OBJDIR)
|
||||
|
||||
|
|
Loading…
Add table
Reference in a new issue