Skip to content

Commit

Permalink
Makefile: update for more modern sytems.
Browse files Browse the repository at this point in the history
  • Loading branch information
dlbeer committed Mar 28, 2018
1 parent 2905f6d commit 5638c79
Showing 1 changed file with 5 additions and 2 deletions.
7 changes: 5 additions & 2 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@
# TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR
# PERFORMANCE OF THIS SOFTWARE.

CSC ?= dmcs
CSC ?= mcs
TARGETS = saraswati.exe libterminal.so
SOURCE = $(wildcard Core/*.cs UI/*.cs)
DESTDIR ?=
Expand All @@ -38,7 +38,10 @@ install: $(TARGETS)
mkdir -p $(DESTDIR)$(LIBDIR)
install -o root -g root saraswati.exe $(DESTDIR)$(LIBDIR)
install -o root -g root libterminal.so $(DESTDIR)$(LIBDIR)
ln -sf $(LIBDIR)/saraswati.exe $(DESTDIR)$(PREFIX)/bin/saraswati
echo '#!/bin/sh' > $(DESTDIR)/$(PREFIX)/bin/saraswati
echo 'mono $(LIBDIR)/saraswati.exe "$$@"' >> \
$(DESTDIR)/$(PREFIX)/bin/saraswati
chmod 755 $(DESTDIR)/$(PREFIX)/bin/saraswati

uninstall:
rm -f $(DESTDIR)$(PREFIX)/bin/saraswati
Expand Down

0 comments on commit 5638c79

Please sign in to comment.