aboutsummaryrefslogtreecommitdiffstats
path: root/Makefile
diff options
context:
space:
mode:
authorNatanael Copa <natanael.copa@gmail.com>2008-12-30 11:41:18 +0100
committerNatanael Copa <natanael.copa@gmail.com>2008-12-30 11:41:18 +0100
commit6ef337b7a345b2b7a79777ac46754c6d0ae3b20e (patch)
tree93e137db74e19bda7f11747188210d7d776f6321 /Makefile
parent721d7a15a87df48449f77241c45ad06a5570ba51 (diff)
downloadpingu-0.1.tar.bz2
pingu-0.1.tar.xz
Makefile: make install targetv0.1
Diffstat (limited to 'Makefile')
-rw-r--r--Makefile13
1 files changed, 12 insertions, 1 deletions
diff --git a/Makefile b/Makefile
index 3f212bf..db8718c 100644
--- a/Makefile
+++ b/Makefile
@@ -1,7 +1,14 @@
-TARGETS = pingu mtu
+TARGETS = mtu
CFLAGS ?= -g
+prefix = /usr
+BINDIR = $(prefix)/bin
+DESTDIR ?=
+
+INSTALL = install
+INSTALLDIR = $(INSTALL) -d
+
pingu_OBJS = \
log.o \
pingu.o \
@@ -20,5 +27,9 @@ pingu: $(pingu_OBJS)
mtu: $(mtu_OBJS)
+install: $(TARGETS)
+ $(INSTALLDIR) $(DESTDIR)/$(BINDIR)
+ $(INSTALL) $(TARGETS) $(DESTDIR)/$(BINDIR)
+
clean:
rm -f $(TARGETS) $(ALL_OBJS)