From b41cf28662fe5734530f280cc0dbb34bbf6aa25a Mon Sep 17 00:00:00 2001 From: Michael R Sweet Date: Sat, 16 Apr 2005 00:01:49 +0000 Subject: Update "clean" targets to properly handle core files, remove backup files, etc. Add "install" target to test directory which installs the example programs. Install the config.h file in the examples directory. Make sure the example programs compile outside the FLTK source dir. Add example programs to fltk.list.in. Fix missing redraw() in x_cb() in FLUID... git-svn-id: file:///fltk/svn/fltk/branches/branch-1.1@4287 ea41ed52-d2ee-0310-a9c1-e6b18d33e121 --- test/Makefile | 12 ++++++++---- 1 file changed, 8 insertions(+), 4 deletions(-) (limited to 'test/Makefile') diff --git a/test/Makefile b/test/Makefile index 49eb45770..6730f6068 100644 --- a/test/Makefile +++ b/test/Makefile @@ -167,14 +167,18 @@ depend: $(CPPFILES) include makedepend clean: - -@ rm -f $(ALL) $(GLALL) *.o core *~ + -$(RM) $(ALL) $(GLALL) core + -$(RM) *.o core.* *~ *.bck *.bak install: - @echo Nothing to install in test directory. + echo "Installing example programs to $(DESTDIR)$(docdir)/examples..." + -$(MKDIR) $(DESTDIR)$(docdir)/examples + $(CP) *.h *.cxx *.fl $(DESTDIR)$(docdir)/examples + $(CHMOD) 644 $(DESTDIR)$(docdir)/examples/*.* uninstall: - @echo Nothing to uninstall in test directory. - + echo "Removing examples programs from $(DESTDIR)$(docdir)/examples..." + -$(RMDIR) $(DESTDIR)$(docdir)/examples # FLUID file rules .fl.cxx .fl.h: ../fluid/fluid$(EXEEXT) -- cgit v1.2.3