summaryrefslogtreecommitdiff
path: root/Makefile
diff options
context:
space:
mode:
authorDaniel Carl <danielcarl@gmx.de>2015-02-23 23:40:11 +0100
committerDaniel Carl <danielcarl@gmx.de>2015-02-23 23:40:11 +0100
commita140ad89813a72e77dcb1d1d259ad048c182fab3 (patch)
treedbe2b31b288eaffefd2834bbc823d49e896bc31d /Makefile
parentf024337e5e0713fcdc37e0d662c862bb2574c97c (diff)
Install the sample scripts too.
Diffstat (limited to 'Makefile')
-rw-r--r--Makefile12
1 files changed, 6 insertions, 6 deletions
diff --git a/Makefile b/Makefile
index 02f9d7d..566f945 100644
--- a/Makefile
+++ b/Makefile
@@ -19,13 +19,13 @@ clean:
@$(MAKE) $(MFLAGS) -C tests clean
install: $(TARGET) $(DOCDIR)/$(MAN1)
- install -d $(DESTDIR)$(BINDIR)
+ install -D -m 755 $(SRCDIR)/$(TARGET) $(DESTDIR)$(BINDIR)/$(TARGET)
+ install -d $(DESTDIR)$(EXAMPLEDIR)
+ cp -r examples/* $(DESTDIR)$(EXAMPLEDIR)
install -d $(DESTDIR)$(MANDIR)/man1
- install -m 755 $(SRCDIR)/$(TARGET) $(DESTDIR)$(BINDIR)/$(TARGET)
- @echo "install -m 644 $(SRCDIR)/$(MAN1) $(DESTDIR)$(MANDIR)/man1/$(MAN1)"
- @sed -e "s/VERSION/$(VERSION)/g" \
- -e "s/DATE/`date +'%m %Y'`/g" < $(DOCDIR)/$(MAN1) > $(DESTDIR)$(MANDIR)/man1/$(MAN1)
- @chmod 644 $(DESTDIR)$(MANDIR)/man1/$(MAN1)
+ @sed -e "s!VERSION!$(VERSION)!g" \
+ -e "s!PREFIX!$(PREFIX)!g" \
+ -e "s!DATE!`date +'%m %Y'`!g" $(DOCDIR)/$(MAN1) > $(DESTDIR)$(MANDIR)/man1/$(MAN1)
uninstall:
$(RM) $(DESTDIR)$(BINDIR)/$(TARGET)