File: Makefile.in

package info (click to toggle)
dotfile 2.2-1
  • links: PTS
  • area: main
  • in suites: hamm, slink
  • size: 4,596 kB
  • ctags: 456
  • sloc: tcl: 11,732; sh: 965; makefile: 304; csh: 13; ansic: 7
file content (97 lines) | stat: -rw-r--r-- 3,185 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
version = 2.2
MODULES = fvwm2 bash tcsh emacs rtin elm fvwm1 procmail ipfwadm

srcdir = @srcdir@
prefix = @prefix@
exec_prefix = @exec_prefix@

# path to wish
WISH = @WISH@

# path to tclsh
TCLSH = @TCLSH@

# Directory in which to install scripts.
bindir = $(exec_prefix)/bin

# Directory in which to install library files.
libdir = $(prefix)/lib/dotfile-$(version)
# Directory for the manual page
mandir = $(prefix)/man/man1

#### End of system configuration section. ####
SHELL = /bin/sh

### Tell the user that there is nothing to be compiled.
.PHONY: nothing
nothing:
	@echo ----------------------------------------------------------------------
	@echo ----------------------------------------------------------------------
	@echo "The Dotfile Generator does not contain any files which has to be compiled!"
	@echo "On the other hand, during installation, all the modules need to be"
	@echo "bytecompiled, so now it's time to type: make install"
	@echo ----------------------------------------------------------------------
	@echo ----------------------------------------------------------------------

#
# install all the files in the corect places.
#
.PHONY:	install
install: copydirs bytecompile
	@echo "**********************************************************************"
	@echo In the directory Doc, three articles in HTML format, concerning
	@echo The Dotfile Generator is located. If you want these to be installed
	@echo on your system, please do it manually.
	@echo "**********************************************************************"

.PHONY: copydirs
copydirs:
	$(SHELL) $(srcdir)/mkinstalldirs $(bindir) $(libdir) \
	$(libdir)/Generator $(mandir)
	for x in $(MODULES); do $(srcdir)/mkinstalldirs $(libdir)/$$x; done
	cd $(srcdir); cp -r Generator/* $(libdir)/Generator
	sed -e 's!Modules!$(libdir)!g' -e '/exec/ s!Generator!$(libdir)/Generator!g' \
	dotfile > $(bindir)/dotfile-$(version)
	for x in $(MODULES); do \
	echo "Installing module $$x"; \
	cp -r Modules/$$x/* $(libdir)/$$x; \
	done
	cp dotfile.1 $(mandir)
	-@RM@ $(bindir)/dotfile
	-@LN@ -s $(bindir)/dotfile-$(version) $(bindir)/dotfile
	chmod 755 $(bindir)/dotfile
	chmod 755 $(bindir)/dotfile-$(version)

.PHONY: bytecompile
bytecompile: $(MODULES)

#
# Targets that requre X (the modules using the fonts widget)
#
.PHONY fvwm1 fvwm2:
fvwm1 fvwm2:
	@echo "----------------------------------------------------------------------"
	@echo "                           Byte compiling $@"
	@if wish testwish; then \
	@WISH@ $(libdir)/Generator/dotfile.tcl $(libdir)/Generator $(libdir)/$@ bytecompile; \
	else \
	echo "An error should be shown above!"; \
	echo "You need X to bytecompile the $@ module, do this manually after"; \
	echo "the installation, by starting this module!"; \
	fi

#
# Targets that may bytecompile without X
#
.PHONY emacs tcsh rtin bash elm procmail ipfwadm:
emacs tcsh rtin bash elm procmail ipfwadm:
	@echo "----------------------------------------------------------------------"
	@echo "                           Byte compiling $@"
	-@@TCLSH@ $(libdir)/Generator/dotfile.tcl $(libdir)/Generator $(libdir)/$@ bytecompile

#
# Clean
#
.PHONY:	clean
clean :
	@echo Nothing to do