Debian Codegraph @

Makefile

raw ◀ ▶
Source reconstructed at patch state 0 of 1 — not the installed (fully patched) source.
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 # use R_PREFIX (root prefix) as not in /usr, this is early run start up stuff
26 R_PREFIX = $(DESTDIR)
27 R_SBINDIR = $(R_PREFIX)/sbin
28
29
30 # --- code for acting out the various make targets
31
32 all:
33 @gzip -9 -c dphys-swapfile.8 > dphys-swapfile.8.gz
34
35 clean:
36 @rm -f dphys-swapfile.8.gz
37
38 distclean: clean
39
40 install:
41 @mkdir -p $(R_SBINDIR)
42 @cp -p dphys-swapfile $(R_SBINDIR)
43
44 @mkdir -p $(MAN8DIR)
45 @cp -p dphys-swapfile.8.gz $(MAN8DIR)
46
47 @mkdir -p $(EXADIR)
48 @cp -p dphys-swapfile.example $(EXADIR)
49 @cp -p init.d.example $(EXADIR)
50
51 uninstall:
52 @rm -f $(EXADIR)/init.d.example
53 @rm -f $(EXADIR)/dphys-config.example
54 @rmdir $(EXADIR)
55
56 @rm -f $(MAN8DIR)/dphys-swapfile.8.gz
57
58 @rm -f $(R_SBINDIR)/dphys-swapfile
59
60
61 # --- project management stuff
62
63 .PHONY: tar
64 tar:
65
66 @# package this project into an .tar.gz for one nice download
67 @echo packaging source and doc files into an .tar.gz ...
68 @(cd ..; tar zcf $(DIR).tar.gz \
69 $(DIR)/FAQ $(DIR)/INSTALL $(DIR)/Logfile $(DIR)/Makefile \
70 $(DIR)/README $(DIR)/dphys-swapfile $(DIR)/dphys-swapfile.8 \
71 $(DIR)/dphys-swapfile.example $(DIR)/index.html.de \
72 $(DIR)/index.html.en $(DIR)/init.d.example )