# http://www.phys.ethz.ch/~franklin/Projects/dphys-admin/Makefile # author/generator dphys2 makesrcpackage script - expanded by Neil Franklin, # last modification/generation 2004.04.28 # 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-admin # --- 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 dphys-admin.8 > dphys-admin.8.gz clean: @/bin/rm -f dphys-admin.8.gz distclean: clean install: @/bin/mkdir -p $(SBINDIR) @/bin/cp -p dphys-admin $(SBINDIR) @/bin/mkdir -p $(MAN8DIR) @/bin/cp -p dphys-admin.8.gz $(MAN8DIR) uninstall: @/bin/rm -f $(SBINDIR)/dphys-admin @/bin/rm -f $(MAN8DIR)/dphys-admin.8.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.4 FAQ INSTALL Makefile README \ dphys-admin dphys-admin.8 dphys-setup.pl index.html.en .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)/RCS $(DIR)/README $(DIR)/dphys-admin $(DIR)/dphys-admin.8 \ $(DIR)/dphys-setup.pl $(DIR)/index.html.de $(DIR)/index.html.en )