# dphys-hotplug-usb-storage/Makefile - drive "upstream" compiling for package # author/generator Neil Franklin using makesourcepackage script, # last modification/generation 2005.02.10 # 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-hotplug-usb-storage # --- no user configurable stuff below here PREFIX = $(DESTDIR)/usr BINDIR = $(PREFIX)/bin LIBDIR = $(PREFIX)/lib/dphys-hotplug-usb-storage SBINDIR = $(PREFIX)/sbin MAN1DIR = $(PREFIX)/share/man/man1 MAN7DIR = $(PREFIX)/share/man/man7 MAN8DIR = $(PREFIX)/share/man/man8 EXADIR = $(PREFIX)/share/doc/dphys-hotplug-usb-storage SCRIPTDIR = $(DESTDIR)/etc/dphys-hotplug.d all: @# man pages need making and deleting of compressed versions @#/bin/gzip -9 -c dphys-hotplug-usb-storage.1 > dphys-hotplug-usb-storage.1.gz clean: @#/bin/rm -f dphys-hotplug-usb-storage.1.gz distclean: clean install: @# programs and man pages need installing to and deleting from system @#/bin/mkdir -p $(BINDIR) @#/bin/cp -p dphys-hotplug-usb-storage $(BINDIR) @/bin/mkdir -p $(SCRIPTDIR) @/bin/cp -p usb-storage $(SCRIPTDIR) @#/bin/mkdir -p $(MAN1DIR) @#/bin/cp -p dphys-hotplug-usb-storage.1.gz $(MAN1DIR) uninstall: @#/bin/rm -f $(BINDIR)/dphys-hotplug-usb-storage @/bin/rm -f $(SCRIPTDIR)/usb-storage @#/bin/rm -f $(MAN1DIR)/dphys-hotplug-usb-storage.1.gz # --- 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)/README $(DIR)/index.html.de $(DIR)/index.html.en \ $(DIR)/planning $(DIR)/usb-storage )