# dphys-kernel-packages/Makefile - drive "upstream" compiling for package # author/generator Neil Franklin using makesourcepackage script, # last modification/generation 2005.10.26 # 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-kernel-packages # --- no user configurable stuff below here PATH=/sbin:/bin:/usr/sbin:/usr/bin PREFIX = $(DESTDIR)/usr BINDIR = $(PREFIX)/bin LIBDIR = $(PREFIX)/lib/dphys-kernel-packages SBINDIR = $(PREFIX)/sbin MAN1DIR = $(PREFIX)/share/man/man1 MAN7DIR = $(PREFIX)/share/man/man7 MAN8DIR = $(PREFIX)/share/man/man8 DOCDIR = $(PREFIX)/share/doc/dphys-kernel-packages EXADIR = $(DOCDIR)/examples # --- code for acting out the various make targets all: @# man pages need making and deleting of compressed versions @gzip -9 -c dphys-kernel-packages.1 > dphys-kernel-packages.1.gz @gzip -9 -c dphys-kernel-cputype.1 > dphys-kernel-cputype.1.gz clean: @rm -f dphys-kernel-cputype.1.gz @rm -f dphys-kernel-packages.1.gz distclean: clean install: @# programs and man pages need installing to and deleting from system @mkdir -p $(BINDIR) @cp -p dphys-kernel-packages $(BINDIR) @cp -p dphys-kernel-cputype $(BINDIR) @mkdir -p $(MAN1DIR) @cp -p dphys-kernel-packages.1.gz $(MAN1DIR) @cp -p dphys-kernel-cputype.1.gz $(MAN1DIR) @mkdir -p $(EXADIR) @cp -p dphys-kernel-packages.example $(EXADIR) @cp -pa 2.4.example $(EXADIR)/2.4 @cp -pa 2.6.example $(EXADIR)/2.6 uninstall: @rm -rf $(EXADIR)/2.6 @rm -rf $(EXADIR)/2.4 @rm -f $(EXADIR)/dphys-kernel-packages.example @rmdir $(EXADIR) @rm -f $(MAN1DIR)/dphys-kernel-cputype.1.gz @rm -f $(MAN1DIR)/dphys-kernel-packages.1.gz @rm -f $(BINDIR)/dphys-kernel-cputype @rm -f $(BINDIR)/dphys-kernel-packages # --- project management stuff .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)/2.4.example $(DIR)/2.6.example $(DIR)/FAQ $(DIR)/INSTALL \ $(DIR)/Logfile $(DIR)/Makefile $(DIR)/README \ $(DIR)/dphys-kernel-cputype $(DIR)/dphys-kernel-cputype.1 \ $(DIR)/dphys-kernel-packages $(DIR)/dphys-kernel-packages.1 \ $(DIR)/dphys-kernel-packages.example \ $(DIR)/index.html.de $(DIR)/index.html.en )