# http://www.phys.ethz.ch/~franklin/Projects/dphys-pkgtools/Makefile # author/generator makesourcepackage script - expanded by Neil Franklin, # last modification/generation 2004.07.21 # This Makefile is copyright ETH Zuerich Physics Departement, # use under either 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 PREFIX = $(DESTDIR)/usr BINDIR = $(PREFIX)/bin SBINDIR = $(PREFIX)/sbin MAN1DIR = $(PREFIX)/share/man/man1 MAN8DIR = $(PREFIX)/share/man/man8 # --- code for acting out the various make targets all: @/bin/gzip -9 -c makesourcepackage.1 > makesourcepackage.1.gz @/bin/gzip -9 -c makelocalsite.1 > makelocalsite.1.gz clean: @/bin/rm -f makesourcepackage.1.gz @/bin/rm -f makelocalsite.1.gz distclean: clean install: @/bin/mkdir -p $(BINDIR) @/bin/cp -p makesourcepackage $(BINDIR) @/bin/cp -p makelocalsite $(BINDIR) @/bin/mkdir -p $(MAN1DIR) @/bin/cp -p makesourcepackage.1.gz $(MAN1DIR) @/bin/cp -p makelocalsite.1.gz $(MAN1DIR) uninstall: @/bin/rm -f $(BINDIR)/makesourcepackage @/bin/rm -f $(BINDIR)/makelocalsite @/bin/rm -f $(MAN1DIR)/makesourcepackage.1.gz @/bin/rm -f $(MAN1DIR)/makelocalsite.1.gz # --- 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 @/bin/echo checking source files into RCS archive ... @/usr/bin/ci -l -r4.5 FAQ INSTALL Makefile Makefile.debian-local \ README index.html.en makelocalsite makelocalsite.1 \ makesourcepackage makesourcepackage.1 .PHONY: tar tar: @# package this project into an .tar.gz for one nice download @/bin/echo packaging source and doc files into an .tar.gz ... @(cd ..; /bin/tar zcf $(DIR).tar.gz \ $(DIR)/FAQ $(DIR)/INSTALL $(DIR)/Logfile $(DIR)/Makefile \ $(DIR)/Makefile.debian-local $(DIR)/RCS $(DIR)/README \ $(DIR)/index.html.de $(DIR)/index.html.en \ $(DIR)/makelocalsite $(DIR)/makelocalsite.1 \ $(DIR)/makesourcepackage $(DIR)/makesourcepackage.1 )