Update of /cvsroot/pure-data/packages/linux_make In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv30335
Modified Files: Makefile Log Message: added readme and separated out installation Makefile generation; this directory should realy be called 'unix_make' since it would work on any UNIX-ish system
Index: Makefile =================================================================== RCS file: /cvsroot/pure-data/packages/linux_make/Makefile,v retrieving revision 1.1 retrieving revision 1.2 diff -C2 -d -r1.1 -r1.2 *** Makefile 28 Nov 2005 06:46:18 -0000 1.1 --- Makefile 29 Nov 2005 19:08:11 -0000 1.2 *************** *** 11,14 **** --- 11,19 ----
+ # for command-line UNIX versions, you need to install Pd into the same + # directory as $(prefix) otherwise Pd won't be able to find extra, doc, etc. + prefix = /usr/local + + include $(BUILDLAYOUT_DIR)/Makefile.buildlayout
*************** *** 31,44 **** #==============================================================================# # ! ## # #==============================================================================#
! PACKAGE_NAME = Pd-$(PD_VERSION)-$(PACKAGE_VERSION)-$(OS_NAME)-$(shell uname -m) ! tarbz2: ! # it is very hard to escape the $ in shell scripts so delete files ! -rm -f -- $(helpdir)/iemabs/*$$*.pd $(objectsdir)/iemabs/*$$*.pd ! -./generate_install_makefile.bash $(DESTDIR)$(prefix) > tarbz2Makefile ! mv -i tarbz2Makefile $(DESTDIR)$(prefix)/Makefile mv $(DESTDIR)$(prefix) $(DESTDIR)$(PACKAGE_NAME) cd $(DESTDIR) && \ --- 36,45 ---- #==============================================================================# # ! ## installer package # #==============================================================================#
! PACKAGE_NAME = Pd-$(PD_VERSION)-$(PACKAGE_VERSION)-$(OS_NAME)-$(shell uname -p) ! tarbz2: installer_makefile installer_readme mv $(DESTDIR)$(prefix) $(DESTDIR)$(PACKAGE_NAME) cd $(DESTDIR) && \ *************** *** 46,49 **** --- 47,81 ---- mv $(DESTDIR)$(PACKAGE_NAME) $(DESTDIR)$(prefix)
+ + INSTALLER_README_FILE = $(DESTDIR)$(prefix)/README.txt + installer_readme: + install -d $(DESTDIR)$(prefix) + -rm $(INSTALLER_README_FILE) + touch $(INSTALLER_README_FILE) + echo -e "$(PACKAGE_NAME)" >> $(INSTALLER_README_FILE) + echo -e "\n\n" >> $(INSTALLER_README_FILE) + echo -e "To install:\n" >> $(INSTALLER_README_FILE) + echo -e "\tmake install\n" >> $(INSTALLER_README_FILE) + echo -e "To uninstall:\n" >> $(INSTALLER_README_FILE) + echo -e "\tmake uninstall\n" >> $(INSTALLER_README_FILE) + echo -e "\n\n" >> $(INSTALLER_README_FILE) + echo -e "You can install this package elsewhere, but its been compiled to run in $(prefix). If you install it somewhere other than $(prefix), you will only be able to run Pd like this:\n" >> $(INSTALLER_README_FILE) + echo -e "\tcd /path/to/bin/pd && ./pd\n" >> $(INSTALLER_README_FILE) + echo -e "Here's how to install it elsewhere:" >> $(INSTALLER_README_FILE) + echo -e "To install:\n" >> $(INSTALLER_README_FILE) + echo -e "\tmake install prefix=/path/to\n" >> $(INSTALLER_README_FILE) + echo -e "To uninstall:\n" >> $(INSTALLER_README_FILE) + echo -e "\tmake uninstall prefix=/path/to\n" >> $(INSTALLER_README_FILE) + + + installer_makefile: + # it is very hard to escape the $ in shell scripts so delete files + -rm -f -- $(helpdir)/iemabs/*$$*.pd $(objectsdir)/iemabs/*$$*.pd + # don't put the Makefile into the package yet, otherwise it'll get installed + -./generate_install_makefile.bash $(DESTDIR)$(prefix) > tarbz2Makefile + mv -i tarbz2Makefile $(DESTDIR)$(prefix)/Makefile + + + #==============================================================================# #