# http://www.phys.ethz.ch/~franklin/Projects/dphys2/Makefile # copyright ETH Zuerich Physics Departement, # use under either BSD or GPL license # author Neil Franklin, last modification 2004.10.15 # --- various site dependant user config variables # for creating an [-].tar.gz archive DIR = dphys2 # --- no user configurable stuff below here PREFIX = $(DESTDIR)/usr BINDIR = $(PREFIX)/bin LIBDIR = $(PREFIX)/lib/dphys2 SBINDIR = $(PREFIX)/sbin MAN1DIR = $(PREFIX)/share/man/man1 MAN7DIR = $(PREFIX)/share/man/man7 MAN8DIR = $(PREFIX)/share/man/man8 EXADIR = $(PREFIX)/share/doc/dphys2 # --- code for acting out the various make targets all: @# hide sfdisk from lintian, else E: because binary in "all" package @/bin/gzip -9 -c sfdisk > sfdisk.gz @/bin/gzip -9 -c dphys2.7 > dphys2.7.gz @/bin/gzip -9 -c dphys2rescue.1 > dphys2rescue.1.gz @/bin/gzip -9 -c dphys2root.1 > dphys2root.1.gz @/bin/gzip -9 -c dphys2cd.1 > dphys2cd.1.gz @/bin/gzip -9 -c dphys2pxe.1 > dphys2pxe.1.gz clean: @/bin/rm -f dphys2.7.gz @/bin/rm -f dphys2rescue.1.gz @/bin/rm -f dphys2root.1.gz @/bin/rm -f dphys2cd.1.gz @/bin/rm -f dphys2pxe.1.gz @/bin/rm -f sfdisk.gz distclean: clean install: @/bin/mkdir -p $(BINDIR) @/bin/cp -p dphys2rescue $(BINDIR) @/bin/cp -p dphys2root $(BINDIR) @/bin/cp -p dphys2cd $(BINDIR) @/bin/cp -p dphys2pxe $(BINDIR) @/bin/mkdir -p $(LIBDIR) @/bin/cp -p dbootstrap $(LIBDIR) @/bin/cp -p sfdisk.gz $(LIBDIR) @/bin/cp -p lilo.conf $(LIBDIR) @/bin/cp -p debconf-preload $(LIBDIR) @/bin/mkdir -p $(MAN1DIR) @/bin/cp -p dphys2rescue.1.gz $(MAN1DIR) @/bin/cp -p dphys2root.1.gz $(MAN1DIR) @/bin/cp -p dphys2cd.1.gz $(MAN1DIR) @/bin/cp -p dphys2pxe.1.gz $(MAN1DIR) @/bin/mkdir -p $(MAN7DIR) @/bin/cp -p dphys2.7.gz $(MAN7DIR) @/bin/mkdir -p $(EXADIR) @/bin/cp -p endfirstrun.simple $(EXADIR) @/bin/cp -p endfirstrun.dphys-admin $(EXADIR) uninstall: @/bin/rm -f $(BINDIR)/dphys2rescue @/bin/rm -f $(BINDIR)/dphys2root @/bin/rm -f $(BINDIR)/dphys2cd @/bin/rm -f $(BINDIR)/dphys2pxe @/bin/rm -f $(LIBDIR)/dbootstrap @/bin/rm -f $(LIBDIR)/sfdisk.gz @/bin/rm -f $(LIBDIR)/lilo.conf @/bin/rm -f $(LIBDIR)/debconf-preload @/bin/rmdir $(LIBDIR) @/bin/rm -f $(MAN1DIR)/dphys2rescue.1.gz @/bin/rm -f $(MAN1DIR)/dphys2root.1.gz @/bin/rm -f $(MAN1DIR)/dphys2cd.1.gz @/bin/rm -f $(MAN1DIR)/dphys2pxe.1.gz @/bin/rm -f $(MAN7DIR)/dphys2.7.gz @/bin/rm -f $(EXADIR)/endfirstrun.simple @/bin/rm -f $(EXADIR)/endfirstrun.dphys-admin @/bin/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 @/bin/echo checking source files into RCS archive ... @/usr/bin/ci -l -r5.1 FAQ INSTALL Makefile README dbootstrap\ debconf-preload endfirstrun.dphys-admin endfirstrun.simple \ index.html.en dphys2 dphys2.7 dphys2cd dphys2cd.1 \ dphys2pxe dphys2pxe.1 dphys2rescue dphys2rescue.1 \ dphys2root dphys2root.1 potato_today woody_new .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)/dbootstrap $(DIR)/debconf-preload \ $(DIR)/endfirstrun.dphys-admin $(DIR)/endfirstrun.simple \ $(DIR)/index.html.de $(DIR)/index.html.en $(DIR)/lilo.conf \ $(DIR)/dphys2 $(DIR)/dphys2.7 $(DIR)/dphys2cd $(DIR)/dphys2cd.1 \ $(DIR)/dphys2pxe $(DIR)/dphys2pxe.1 $(DIR)/dphys2rescue \ $(DIR)/dphys2rescue.1 $(DIR)/dphys2root $(DIR)/dphys2root.1 \ $(DIR)/potato_today $(DIR)/sfdisk $(DIR)/woody_new )