# http://www.phys.ethz.ch/~franklin/Projects/dphys-pkgtools/Makefile # author/generator makesourcepackage script - expanded by Neil Franklin, # last modification/generation 2006.12.19 # This Makefile is copyright ETH Zuerich Physics Departement # use under either modified/non-advertising BSD or GPL license # --- various site dependant user config variables # for creating an [-].tar.gz archive DIR = dphys-pkgtools # --- no user configurable stuff below here PATH=/sbin:/bin:/usr/sbin:/usr/bin PREFIX = $(DESTDIR)/usr BINDIR = $(PREFIX)/bin LIBDIR = $(PREFIX)/lib/dphys-pkgtools SBINDIR = $(PREFIX)/sbin MAN1DIR = $(PREFIX)/share/man/man1 MAN7DIR = $(PREFIX)/share/man/man7 MAN8DIR = $(PREFIX)/share/man/man8 DOCDIR = $(PREFIX)/share/doc/dphys-pkgtools EXADIR = $(DOCDIR)/examples # --- code for acting out the various make targets all: @# man pages need making and deleting of compressed versions @gzip -9 -c makesourcepackage.1 > makesourcepackage.1.gz @gzip -9 -c makelocalsite.1 > makelocalsite.1.gz @gzip -9 -c dphys-pkgtools.7 > dphys-pkgtools.7.gz clean: @rm -f makesourcepackage.1.gz @rm -f makelocalsite.1.gz @rm -f dphys-pkgtools.7.gz distclean: clean install: @# programs and man pages need installing to and deleting from system @mkdir -p $(BINDIR) @cp -p makesourcepackage $(BINDIR) @cp -p makelocalsite $(BINDIR) @mkdir -p $(MAN1DIR) @cp -p makesourcepackage.1.gz $(MAN1DIR) @cp -p makelocalsite.1.gz $(MAN1DIR) @mkdir -p $(MAN7DIR) @cp -p dphys-pkgtools.7.gz $(MAN7DIR) @mkdir -p $(EXADIR) @cp -p dphys-pkgtools.example $(EXADIR) uninstall: @rm -f $(BINDIR)/makesourcepackage @rm -f $(BINDIR)/makelocalsite @rm -f $(MAN1DIR)/makesourcepackage.1.gz @rm -f $(MAN1DIR)/makelocalsite.1.gz @rm -f $(MAN7DIR)/dphys-pkgtools.7.gz @rm -f $(EXADIR)/dphys-pkgtools.example @rmdir $(EXADIR) # --- project management stuff .PHONY: ci ci: @# the -r?.? has to fixed before each make ci @# best on the first Makefile edit after last make ci @echo checking source files into RCS archive ... @ci -l -r5.1 FAQ INSTALL Makefile README \ dphys-pkgtools.7 index.html.en makelocalsite makelocalsite.1 \ makesourcepackage makesourcepackage.1 .PHONY: tar tar: @# package this project into an .tar.gz for one nice download @echo packaging source and doc files into an .tar.gz ... @(cd ..; tar zcf $(DIR).tar.gz \ $(DIR)/FAQ $(DIR)/INSTALL $(DIR)/Logfile $(DIR)/Makefile \ $(DIR)/RCS $(DIR)/README $(DIR)/dphys-pkgtools.7 \ $(DIR)/dphys-pkgtools.example $(DIR)/index.html.de \ $(DIR)/index.html.en $(DIR)/makelocalsite $(DIR)/makelocalsite.1 \ $(DIR)/makesourcepackage $(DIR)/makesourcepackage.1 )