root/NEWT0/trunk/contrib/inwt/Makefile

Revision 118, 305 bytes (checked in by eck, 15 months ago)

Add libnewt to the default target and install target

Line 
1prefix      = /usr/local
2exec_prefix = ${prefix}
3bindir      = ${exec_prefix}/bin
4NEWT        = $(bindir)/newt
5SCRIPT      = inwt
6
7all:        $(SCRIPT)
8
9edit = sed \
10    -e 's,@NEWT\@,$(NEWT),g'
11
12$(SCRIPT):  $(SCRIPT).nwt
13    $(edit) $(SCRIPT).nwt > $@
14
15install::
16    install -m 755 $(SCRIPT) $(DESTDIR)$(bindir)
17
18clean:
19    rm -f $(SCRIPT)
Note: See TracBrowser for help on using the browser.