Simon Kelley | 9e4abcb | 2004-01-22 19:47:41 +0000 | [diff] [blame] | 1 | PREFIX?=/usr/local |
| 2 | BINDIR = ${PREFIX}/sbin |
| 3 | MANDIR = ${PREFIX}/man |
| 4 | |
| 5 | SRC = src |
| 6 | |
| 7 | CFLAGS?= -O2 |
| 8 | |
| 9 | all : |
| 10 | @cd $(SRC); $(MAKE) dnsmasq |
| 11 | |
| 12 | clean : |
Simon Kelley | feba5c1 | 2004-07-27 20:28:58 +0100 | [diff] [blame] | 13 | rm -f *~ contrib/*/*~ */*~ $(SRC)/*.o $(SRC)/dnsmasq core build |
Simon Kelley | 9e4abcb | 2004-01-22 19:47:41 +0000 | [diff] [blame] | 14 | |
Simon Kelley | 44a2a31 | 2004-03-10 20:04:35 +0000 | [diff] [blame] | 15 | install : all |
Simon Kelley | 9e4abcb | 2004-01-22 19:47:41 +0000 | [diff] [blame] | 16 | install -d $(DESTDIR)$(BINDIR) -d $(DESTDIR)$(MANDIR)/man8 |
| 17 | install -m 644 dnsmasq.8 $(DESTDIR)$(MANDIR)/man8 |
| 18 | install -m 755 $(SRC)/dnsmasq $(DESTDIR)$(BINDIR) |
| 19 | |
| 20 | |
| 21 | |
| 22 | |