diff options
author | Christian Pointner <equinox@anytun.org> | 2009-11-14 17:00:54 +0000 |
---|---|---|
committer | Christian Pointner <equinox@anytun.org> | 2009-11-14 17:00:54 +0000 |
commit | 3a63abd4e3509e6eadd84b32f100d83f17531937 (patch) | |
tree | cf997f8f6e4b893c19e7d5a9ab77d059ea6e058b /src/Makefile | |
parent | small fix at configure (diff) |
added --no-examples to configure script
Diffstat (limited to 'src/Makefile')
-rw-r--r-- | src/Makefile | 15 |
1 files changed, 13 insertions, 2 deletions
diff --git a/src/Makefile b/src/Makefile index b83e0c6..911de28 100644 --- a/src/Makefile +++ b/src/Makefile @@ -103,7 +103,16 @@ cleanall: clean manpage: $(MAKE) --directory="../doc/" manpage -install: all install-bin install-etc install-examples install-man + +ifdef EXAMPLESDIR +INSTALL_TARGETS := install-bin install-etc install-examples install-man +REMOVE_TARGETS := remove-examples +else +INSTALL_TARGETS := install-bin install-etc install-man +REMOVE_TARGETS := +endif + +install: all $(INSTALL_TARGETS) install-bin: $(EXECUTABLE) $(INSTALL) -d $(DESTDIR)$(SBINDIR) @@ -141,10 +150,12 @@ install-man: manpage uninstall: remove -remove: +remove: $(REMOVE_TARGETS) rm -f $(DESTDIR)$(SBINDIR)/$(EXECUTABLE) rm -f $(DESTDIR)$(MANDIR)/man8/$(EXECUTABLE).8 rm -f $(DESTDIR)$(ETCDIR)/init.d/$(EXECUTABLE) + +remove-examples: rm -rf $(DESTDIR)$(EXAMPLESDIR)/$(EXECUTABLE)/ purge: remove |