Debian Codegraph @

Makefile

raw ◀ ▶
1 Debian patch touch this file
1 # http://neil.franklin.ch/Projects/dphys-swapfile/Makefile
2 # author Franklin, last modification 2006.12.22
3 # This Makefile is copyright ETH Zuerich Physics Departement
4 # use under either modified/non-advertising BSD or GPL license
5
6 # --- various site dependant user config variables
7
8 # for creating an <program>[-<version>].tar.gz archive
9 DIR = dphys-swapfile
10
11
12 # --- no user configurable stuff below here
13
14 # /usr/local added for Slackware, because self installed stuff ends up in there
15 PATH=/sbin:/bin:/usr/sbin:/usr/bin:/usr/local/sbin:/usr/local/bin
16
17 PREFIX = $(DESTDIR)/usr
18 BINDIR = $(PREFIX)/bin
19 SBINDIR = $(PREFIX)/sbin
20 MAN1DIR = $(PREFIX)/share/man/man1
21 MAN8DIR = $(PREFIX)/share/man/man8
22 DOCDIR = $(PREFIX)/share/doc/dphys-swapfile
23 EXADIR = $(DOCDIR)/examples
24
25
26 # --- code for acting out the various make targets
27
28 all:
29 @gzip -9 -c dphys-swapfile.8 > dphys-swapfile.8.gz
30
31 clean:
32 @rm -f dphys-swapfile.8.gz
33
34 distclean: clean
35
36 install:
•37 @mkdir -p $(SBINDIR)
38 @cp -p dphys-swapfile $(SBINDIR)
39
40 @mkdir -p $(MAN8DIR)
41 @cp -p dphys-swapfile.8.gz $(MAN8DIR)
42
43 @mkdir -p $(EXADIR)
44 @cp -p dphys-swapfile.example $(EXADIR)
45 @cp -p init.d.example $(EXADIR)
46
47 uninstall:
48 @rm -f $(EXADIR)/init.d.example
49 @rm -f $(EXADIR)/dphys-config.example
50 @rmdir $(EXADIR)
51
52 @rm -f $(MAN8DIR)/dphys-swapfile.8.gz
53
•54 @rm -f $(SBINDIR)/dphys-swapfile
55
56
57 # --- project management stuff
58
59 .PHONY: tar
60 tar:
61
62 @# package this project into an .tar.gz for one nice download
63 @echo packaging source and doc files into an .tar.gz ...
64 @(cd ..; tar zcf $(DIR).tar.gz \
65 $(DIR)/FAQ $(DIR)/INSTALL $(DIR)/Logfile $(DIR)/Makefile \
66 $(DIR)/README $(DIR)/dphys-swapfile $(DIR)/dphys-swapfile.8 \
67 $(DIR)/dphys-swapfile.example $(DIR)/index.html.de \
68 $(DIR)/index.html.en $(DIR)/init.d.example )