@SET_MAKE@ prefix = @prefix@ exec_prefix = @exec_prefix@ libdir = @libdir@ INSTALL = @INSTALL@ MKDIR = @MKDIR@ PERL = @PERL@ all: Makefile \ orca_logo.gif.hex \ rrdtool_logo.gif.hex \ rothschild_image_logo.png.hex # Create a hex file representation of orca_logo.gif that can be stored # inside orca.pl. orca_logo.gif.hex: orca_logo.gif $(PERL) -e 'while (sysread(STDIN, $$b, 35)){print unpack("h*", $$b),"\n"}' < $< > $@ # Create a hex file representation of rrdtool_logo.gif that can be # stored inside orca.pl. rrdtool_logo.gif.hex: rrdtool_logo.gif $(PERL) -e 'while (sysread(STDIN, $$b, 35)){print unpack("h*", $$b),"\n"}' < $< > $@ # Create a hex file representation of rothschild_image_logo.png that # can be stored inside orca.pl. rothschild_image_logo.png.hex: rothschild_image_logo.png $(PERL) -e 'while (sysread(STDIN, $$b, 35)){print unpack("h*", $$b),"\n"}' < $< > $@ check: test: check install: install-orca install-se install-orca: all $(MKDIR) $(DESTDIR)$(libdir)/perl/Orca @for f in Orca/*.pm; do \ echo $(INSTALL) -m 0644 $$f $(DESTDIR)$(libdir)/perl/Orca; \ $(INSTALL) -m 0644 $$f $(DESTDIR)$(libdir)/perl/Orca || exit 1; \ done @if test -d Orca/Config; then \ echo $(MKDIR) $(DESTDIR)$(libdir)/perl/Orca/Config; \ $(MKDIR) $(DESTDIR)$(libdir)/perl/Orca/Config || exit 1; \ for f in Orca/Config/*.pm; do \ echo $(INSTALL) -m 0644 $$f $(DESTDIR)$(libdir)/perl/Orca/Config; \ $(INSTALL) -m 0644 $$f $(DESTDIR)$(libdir)/perl/Orca/Config || exit 1; \ done; \ fi @echo "cd ..; sh -c 'svnversion .'" @current_rev="`cd ..; sh -c 'svnversion .' 2>/dev/null || true`"; \ echo "Subversion reversion of Orca is: $$current_rev"; \ if test "$$current_rev" != "" && \ test "$$current_rev" != "exported"; then \ echo Fixing svn revision number in $(DESTDIR)$(libdir)/perl/Orca/Constants.pm; \ echo $(PERL) -w -p -i \ -e 's/^(\$$ORCA_VER_REVISION\s*=\s*).*/$${1}"'$$current_rev'";/' \ $(DESTDIR)$(libdir)/perl/Orca/Constants.pm; \ $(PERL) -w -p -i \ -e 's/^(\$$ORCA_VER_REVISION\s*=\s*).*/$${1}"'$$current_rev'";/' \ $(DESTDIR)$(libdir)/perl/Orca/Constants.pm || exit 1; \ else \ echo Not fixing svn revision number in $(DESTDIR)$(libdir)/perl/Orca/Constants.pm; \ fi install-se: all $(MKDIR) $(DESTDIR)$(libdir)/SE/3.2.1 $(MKDIR) $(DESTDIR)$(libdir)/SE/3.3 $(MKDIR) $(DESTDIR)$(libdir)/SE/3.3.1 $(MKDIR) $(DESTDIR)$(libdir)/SE/3.4 @for d in SE/*; do \ test ! -d $$d && continue; \ for f in $$d/*; do \ test ! -f $$f && continue; \ echo $(INSTALL) -m 0644 $$f $(DESTDIR)$(libdir)/$$d; \ $(INSTALL) -m 0644 $$f $(DESTDIR)$(libdir)/$$d || exit 1; \ done \ done clean: distclean: clean $(RM) Makefile Makefile: Makefile.in cd .. && CONFIG_FILES=lib/Makefile ./config.status