# http://www.phys.ethz.ch/~franklin/Projects/dphys3/Makefile # copyright ETH Zuerich Physics Departement, # use under either BSD or GPL license # author Neil Franklin, last modification 2005.04.15 # --- various site dependant user config variables # for creating an [-].tar.gz archive DIR = dphys3 # --- no user configurable stuff below here PREFIX = $(DESTDIR)/usr BINDIR = $(PREFIX)/bin SBINDIR = $(PREFIX)/sbin MAN1DIR = $(PREFIX)/share/man/man1 MAN7DIR = $(PREFIX)/share/man/man7 MAN8DIR = $(PREFIX)/share/man/man8 DOCDIR = $(PREFIX)/share/doc/dphys3 EXADIR = $(DOCDIR)/examples # --- code for acting out the various make targets all: @/bin/gzip -9 -c dphys3.7 > dphys3.7.gz @/bin/gzip -9 -c dphys3kernel.1 > dphys3kernel.1.gz @/bin/gzip -9 -c dphys3preseed.1 > dphys3preseed.1.gz @/bin/gzip -9 -c dphys3boot.1 > dphys3boot.1.gz @/bin/gzip -9 -c dphys3root.1 > dphys3root.1.gz @/bin/gzip -9 -c dphys3cd.1 > dphys3cd.1.gz @/bin/gzip -9 -c dphys3pxe.1 > dphys3pxe.1.gz clean: @/bin/rm -f dphys3.7.gz @/bin/rm -f dphys3kernel.1.gz @/bin/rm -f dphys3preseed.1.gz @/bin/rm -f dphys3boot.1.gz @/bin/rm -f dphys3root.1.gz @/bin/rm -f dphys3cd.1.gz @/bin/rm -f dphys3pxe.1.gz distclean: clean install: @/bin/mkdir -p $(BINDIR) @/bin/cp -p dphys3kernel $(BINDIR) @/bin/cp -p dphys3preseed $(BINDIR) @/bin/cp -p dphys3boot $(BINDIR) @/bin/cp -p dphys3root $(BINDIR) @/bin/cp -p dphys3cd $(BINDIR) @/bin/cp -p dphys3pxe $(BINDIR) @/bin/mkdir -p $(MAN1DIR) @/bin/cp -p dphys3kernel.1.gz $(MAN1DIR) @/bin/cp -p dphys3preseed.1.gz $(MAN1DIR) @/bin/cp -p dphys3boot.1.gz $(MAN1DIR) @/bin/cp -p dphys3root.1.gz $(MAN1DIR) @/bin/cp -p dphys3cd.1.gz $(MAN1DIR) @/bin/cp -p dphys3pxe.1.gz $(MAN1DIR) @/bin/mkdir -p $(MAN7DIR) @/bin/cp -p dphys3.7.gz $(MAN7DIR) @/bin/mkdir -p $(DOCDIR) @/bin/cp -p QUICK_GUIDE $(DOCDIR) @/bin/mkdir -p $(EXADIR) @/bin/cp -p dphys3 $(EXADIR) @/bin/cp -p end2stage.simple $(EXADIR) @/bin/cp -p end2stage.dphys-admin $(EXADIR) uninstall: @/bin/rm -f $(EXADIR)/dphys3 @/bin/rm -f $(EXADIR)/end2stage.simple @/bin/rm -f $(EXADIR)/end2stage.dphys-admin @/bin/rmdir $(EXADIR) @/bin/rm -f $(DOCDIR)/QUICK_GUIDE @/bin/rmdir $(DOCDIR) @/bin/rm -f $(MAN1DIR)/dphys3kernel.1.gz @/bin/rm -f $(MAN1DIR)/dphys3preseed.1.gz @/bin/rm -f $(MAN1DIR)/dphys3boot.1.gz @/bin/rm -f $(MAN1DIR)/dphys3root.1.gz @/bin/rm -f $(MAN1DIR)/dphys3cd.1.gz @/bin/rm -f $(MAN1DIR)/dphys3pxe.1.gz @/bin/rm -f $(MAN7DIR)/dphys3.7.gz @/bin/rm -f $(BINDIR)/dphys3kernel @/bin/rm -f $(BINDIR)/dphys3preseed @/bin/rm -f $(BINDIR)/dphys3cd @/bin/rm -f $(BINDIR)/dphys3pxe # --- project management stuff .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)/QUICK_GUIDE $(DIR)/README $(DIR)/add-preseed \ $(DIR)/dphys3 $(DIR)/dphys3.7 $(DIR)/dphys3boot $(DIR)/dphys3boot.1 \ $(DIR)/dphys3cd $(DIR)/dphys3cd.1 $(DIR)/dphys3kernel \ $(DIR)/dphys3kernel.1 $(DIR)/dphys3preseed $(DIR)/dphys3preseed.1 \ $(DIR)/dphys3pxe $(DIR)/dphys3pxe.1 $(DIR)/dphys3root \ $(DIR)/dphys3root.1 $(DIR)/end2stage.dphys-admin \ $(DIR)/end2stage.simple $(DIR)/index.html.de $(DIR)/index.html.en \ $(DIR)/preseed.cfg )