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 : |
Simon Kelley | 3d8df26 | 2005-08-29 12:19:27 +0100 | [diff] [blame^] | 10 | $(MAKE) -f ../bld/Makefile -C $(SRC) dnsmasq |
Simon Kelley | 9e4abcb | 2004-01-22 19:47:41 +0000 | [diff] [blame] | 11 | |
| 12 | clean : |
Simon Kelley | 3d8df26 | 2005-08-29 12:19:27 +0100 | [diff] [blame^] | 13 | rm -f *~ bld/*~ 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 | |